jupyter-ydoc 3.0.2__py3-none-any.whl → 3.0.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
jupyter_ydoc/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # This file is auto-generated by Hatchling. As such, do not:
2
2
  # - modify
3
3
  # - track in version control e.g. be sure to add to .gitignore
4
- __version__ = VERSION = '3.0.2'
4
+ __version__ = VERSION = '3.0.4'
jupyter_ydoc/ynotebook.py CHANGED
@@ -202,7 +202,11 @@ class YNotebook(YBaseDoc):
202
202
  cells = []
203
203
  for i in range(len(self._ycells)):
204
204
  cell = self.get_cell(i)
205
- if "id" in cell and meta["nbformat"] == 4 and meta["nbformat_minor"] <= 4:
205
+ if (
206
+ "id" in cell
207
+ and int(meta.get("nbformat", 0)) == 4
208
+ and int(meta.get("nbformat_minor", 0)) <= 4
209
+ ):
206
210
  # strip cell IDs if we have notebook format 4.0-4.4
207
211
  del cell["id"]
208
212
  if (
@@ -1,15 +1,16 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: jupyter-ydoc
3
- Version: 3.0.2
3
+ Version: 3.0.4
4
4
  Summary: Document structures for collaborative editing using Ypy
5
5
  Project-URL: Homepage, https://jupyter.org
6
6
  Project-URL: Source, https://github.com/jupyter-server/jupyter_ydoc
7
7
  Author-email: Jupyter Development Team <jupyter@googlegroups.com>
8
8
  License: BSD 3-Clause License
9
+ License-File: LICENSE
9
10
  Keywords: jupyter,pycrdt,yjs
10
11
  Requires-Python: >=3.8
11
12
  Requires-Dist: importlib-metadata>=3.6; python_version < '3.10'
12
- Requires-Dist: pycrdt<0.11.0,>=0.10.1
13
+ Requires-Dist: pycrdt<0.13.0,>=0.10.1
13
14
  Provides-Extra: dev
14
15
  Requires-Dist: click; extra == 'dev'
15
16
  Requires-Dist: jupyter-releaser; extra == 'dev'
@@ -1,14 +1,14 @@
1
1
  jupyter_ydoc/__init__.py,sha256=cVoElIvmvfj0IECe1gKe3f5vyyO7Dq7dMB_A0s2zjs4,649
2
- jupyter_ydoc/_version.py,sha256=ym7FXTXxoP5QoczbdYAgP1543o7h8doLQ16oWFE2qHA,171
2
+ jupyter_ydoc/_version.py,sha256=4Dz1qvhKS2FC00ogNYIfO_d-7r5IkFt8DIJ9S4XDB5I,171
3
3
  jupyter_ydoc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  jupyter_ydoc/utils.py,sha256=jnjF2uNmioh0z_4ymmMSYiB_2dAKSLmNFzVvR5V5Td0,883
5
5
  jupyter_ydoc/ybasedoc.py,sha256=RUkrlfu7xp6UfnxhKLB9tHCQyQDTAH10jmQ_AEY5Suo,5119
6
6
  jupyter_ydoc/yblob.py,sha256=44ZUakq9anNLAcaEuM9RpVN-J6Owf5kFpJJ80mTni8c,2253
7
7
  jupyter_ydoc/yfile.py,sha256=XTMtAXDWgIOLU2KUQxkLJz2cGvSPlOxpvJc4daXCV6I,198
8
- jupyter_ydoc/ynotebook.py,sha256=wjecaheJvw6zlVr0Am4H23Egs6oWtAiSDH18HPkQSIo,8877
8
+ jupyter_ydoc/ynotebook.py,sha256=wbZiMgFMOg5xhBzLOfsFSeUiTlnXgV6yG-fsk161ZoE,8965
9
9
  jupyter_ydoc/yunicode.py,sha256=Um1BIGwne10ZQODeRA1qIi_vss-u3MKsjZNjbKodfQM,2385
10
- jupyter_ydoc-3.0.2.dist-info/METADATA,sha256=Kd9e_uWas6sOI5T5kdcgU74FqlA2tPFt8A90l25dv0E,3041
11
- jupyter_ydoc-3.0.2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
12
- jupyter_ydoc-3.0.2.dist-info/entry_points.txt,sha256=lgvRG-rpsjRKf8cy7LpO7fqwwXy0sBVMCwhGOHgn4mc,164
13
- jupyter_ydoc-3.0.2.dist-info/licenses/LICENSE,sha256=dqphsFbhnlzPK7Vlkc66Zc7g7PS-e1dln07GXIVpFCQ,1567
14
- jupyter_ydoc-3.0.2.dist-info/RECORD,,
10
+ jupyter_ydoc-3.0.4.dist-info/METADATA,sha256=P8EhgstFstALe89RghbfGtXxtZt3O45pGAw73nDlVME,3063
11
+ jupyter_ydoc-3.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
+ jupyter_ydoc-3.0.4.dist-info/entry_points.txt,sha256=lgvRG-rpsjRKf8cy7LpO7fqwwXy0sBVMCwhGOHgn4mc,164
13
+ jupyter_ydoc-3.0.4.dist-info/licenses/LICENSE,sha256=dqphsFbhnlzPK7Vlkc66Zc7g7PS-e1dln07GXIVpFCQ,1567
14
+ jupyter_ydoc-3.0.4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.26.3
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any