Skip to content

Commit 63af4d7

Browse files
Merge pull request #53 from jupyter-server/cell_metadata
Add back YMap for cell metadata
2 parents 234334f + f665552 commit 63af4d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_ydoc/ydoc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def create_ycell(self, value: Dict[str, Any]) -> None:
116116
cell["id"] = str(uuid4())
117117
cell_type = cell["cell_type"]
118118
cell["source"] = Y.YText(cell["source"])
119-
cell["metadata"] = cell.get("metadata", {})
119+
cell["metadata"] = Y.YMap(cell.get("metadata", {}))
120120

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

0 commit comments

Comments
 (0)