Skip to content

Commit 1744d80

Browse files
committed
Fix empty YNotebook
1 parent ad6c18e commit 1744d80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jupyter_ydoc/ynotebook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ def get(self) -> Dict:
221221
return dict(
222222
cells=cells,
223223
metadata=meta.get("metadata", {}),
224-
nbformat=int(meta.get("nbformat", 0)),
225-
nbformat_minor=int(meta.get("nbformat_minor", 0)),
224+
nbformat=int(meta.get("nbformat", NBFORMAT_MAJOR_VERSION)),
225+
nbformat_minor=int(meta.get("nbformat_minor", NBFORMAT_MINOR_VERSION)),
226226
)
227227

228228
def set(self, value: Dict) -> None:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test = [
3131
"pytest",
3232
"pytest-asyncio",
3333
"websockets >=10.0",
34-
"ypy-websocket >=0.8.3,<0.9.0",
34+
"ypy-websocket >=0.8.3,<0.13.0",
3535
]
3636
docs = [
3737
"sphinx",

0 commit comments

Comments
 (0)