jupyter-ydoc 3.0.0a4__py3-none-any.whl → 3.0.0a6__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.0a4'
4
+ __version__ = VERSION = '3.0.0a6'
jupyter_ydoc/ynotebook.py CHANGED
@@ -222,17 +222,7 @@ class YNotebook(YBaseDoc):
222
222
  nb_without_cells = {key: value[key] for key in value.keys() if key != "cells"}
223
223
  nb = copy.deepcopy(nb_without_cells)
224
224
  cast_all(nb, int, float) # Yjs expects numbers to be floating numbers
225
- cells = value["cells"] or [
226
- {
227
- "cell_type": "code",
228
- "execution_count": None,
229
- # auto-created empty code cell without outputs ought be trusted
230
- "metadata": {"trusted": True},
231
- "outputs": [],
232
- "source": "",
233
- "id": str(uuid4()),
234
- }
235
- ]
225
+ cells = value["cells"]
236
226
 
237
227
  with self._ydoc.transaction():
238
228
  # clear document
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: jupyter-ydoc
3
- Version: 3.0.0a4
3
+ Version: 3.0.0a6
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
@@ -1,14 +1,14 @@
1
1
  jupyter_ydoc/__init__.py,sha256=cVoElIvmvfj0IECe1gKe3f5vyyO7Dq7dMB_A0s2zjs4,649
2
- jupyter_ydoc/_version.py,sha256=W0xw_Fw48Anty74cNoWAkaDA0umdRv9MahGVS2S7Q60,173
2
+ jupyter_ydoc/_version.py,sha256=RGt806ii0jkchAcX1argcltI2sIgOyfoOvOW0m54AZ8,173
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=68oZ_0s-uITkBZz8syvw_DvDK_Uht7CHl6slaVSrSqM,4840
6
6
  jupyter_ydoc/yblob.py,sha256=kTBSgQfUBpzwbfRCP8cs02PIliLoZB2oixrGOdpFsbw,1999
7
7
  jupyter_ydoc/yfile.py,sha256=XTMtAXDWgIOLU2KUQxkLJz2cGvSPlOxpvJc4daXCV6I,198
8
- jupyter_ydoc/ynotebook.py,sha256=FMQfPAaWXIgRDHZZg0xjtpwWCqizGyLWuApZUWW7ozg,8430
8
+ jupyter_ydoc/ynotebook.py,sha256=NuW6-zpd0WX99eVINNh9Qbtex6n1qg9kjnkxWeGH_eE,8085
9
9
  jupyter_ydoc/yunicode.py,sha256=AVjQov_MBetyr6Xop1daLWKgTpXURwC2b-t1Nvzkz14,2131
10
- jupyter_ydoc-3.0.0a4.dist-info/METADATA,sha256=EAFDtITC2eGGojMf592GwUZCVhigws6Pqaf120TJ9Sk,3015
11
- jupyter_ydoc-3.0.0a4.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
12
- jupyter_ydoc-3.0.0a4.dist-info/entry_points.txt,sha256=lgvRG-rpsjRKf8cy7LpO7fqwwXy0sBVMCwhGOHgn4mc,164
13
- jupyter_ydoc-3.0.0a4.dist-info/licenses/LICENSE,sha256=dqphsFbhnlzPK7Vlkc66Zc7g7PS-e1dln07GXIVpFCQ,1567
14
- jupyter_ydoc-3.0.0a4.dist-info/RECORD,,
10
+ jupyter_ydoc-3.0.0a6.dist-info/METADATA,sha256=4CfNU1PNuc9j_wMvkUkv6_zNdSRGaYPIOL6IX_XfBdM,3015
11
+ jupyter_ydoc-3.0.0a6.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
12
+ jupyter_ydoc-3.0.0a6.dist-info/entry_points.txt,sha256=lgvRG-rpsjRKf8cy7LpO7fqwwXy0sBVMCwhGOHgn4mc,164
13
+ jupyter_ydoc-3.0.0a6.dist-info/licenses/LICENSE,sha256=dqphsFbhnlzPK7Vlkc66Zc7g7PS-e1dln07GXIVpFCQ,1567
14
+ jupyter_ydoc-3.0.0a6.dist-info/RECORD,,