Skip to content

Commit

Permalink
Merge pull request #53 from jupyter-server/cell_metadata
Browse files Browse the repository at this point in the history
Add back YMap for cell metadata
  • Loading branch information
davidbrochart authored Sep 26, 2022
2 parents 234334f + f665552 commit 63af4d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_ydoc/ydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def create_ycell(self, value: Dict[str, Any]) -> None:
cell["id"] = str(uuid4())
cell_type = cell["cell_type"]
cell["source"] = Y.YText(cell["source"])
cell["metadata"] = cell.get("metadata", {})
cell["metadata"] = Y.YMap(cell.get("metadata", {}))

if cell_type in ("raw", "markdown"):
cell["attachments"] = Y.YMap(cell.get("attachments", {}))
Expand Down

0 comments on commit 63af4d7

Please sign in to comment.