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 697715eCopy full SHA for 697715e
jupyter_ydoc/ynotebook.py
@@ -202,7 +202,11 @@ 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 (
206
+ "id" in cell
207
+ and int(meta.get("nbformat", 0)) == 4
208
+ and int(meta.get("nbformat_minor", 0)) <= 4
209
+ ):
210
# strip cell IDs if we have notebook format 4.0-4.4
211
del cell["id"]
212
if (
0 commit comments