We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b8e788 commit 60e582dCopy full SHA for 60e582d
jupyter_ydoc/ynotebook.py
@@ -202,7 +202,7 @@ def get(self) -> Dict:
202
cells = []
203
for i in range(len(self._ycells)):
204
cell = self.get_cell(i)
205
- if "id" in cell and meta["nbformat"] == 4 and meta["nbformat_minor"] <= 4:
+ if "id" in cell and meta.get("nbformat", 0) == 4 and meta.get("nbformat_minor", 0) <= 4:
206
# strip cell IDs if we have notebook format 4.0-4.4
207
del cell["id"]
208
if (
0 commit comments