jupyter-ydoc 3.0.1__py3-none-any.whl → 3.0.3__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 +1 -1
- jupyter_ydoc/ynotebook.py +11 -2
- {jupyter_ydoc-3.0.1.dist-info → jupyter_ydoc-3.0.3.dist-info}/METADATA +4 -3
- {jupyter_ydoc-3.0.1.dist-info → jupyter_ydoc-3.0.3.dist-info}/RECORD +7 -7
- {jupyter_ydoc-3.0.1.dist-info → jupyter_ydoc-3.0.3.dist-info}/WHEEL +1 -1
- {jupyter_ydoc-3.0.1.dist-info → jupyter_ydoc-3.0.3.dist-info}/entry_points.txt +0 -0
- {jupyter_ydoc-3.0.1.dist-info → jupyter_ydoc-3.0.3.dist-info}/licenses/LICENSE +0 -0
jupyter_ydoc/_version.py
CHANGED
jupyter_ydoc/ynotebook.py
CHANGED
|
@@ -166,7 +166,12 @@ class YNotebook(YBaseDoc):
|
|
|
166
166
|
outputs = cell.get("outputs", [])
|
|
167
167
|
for idx, output in enumerate(outputs):
|
|
168
168
|
if output.get("output_type") == "stream":
|
|
169
|
-
|
|
169
|
+
text = output.get("text", "")
|
|
170
|
+
if isinstance(text, str):
|
|
171
|
+
ytext = Text(text)
|
|
172
|
+
else:
|
|
173
|
+
ytext = Text("".join(text))
|
|
174
|
+
output["text"] = ytext
|
|
170
175
|
outputs[idx] = Map(output)
|
|
171
176
|
cell["outputs"] = Array(outputs)
|
|
172
177
|
cell["execution_state"] = "idle"
|
|
@@ -197,7 +202,11 @@ class YNotebook(YBaseDoc):
|
|
|
197
202
|
cells = []
|
|
198
203
|
for i in range(len(self._ycells)):
|
|
199
204
|
cell = self.get_cell(i)
|
|
200
|
-
if
|
|
205
|
+
if (
|
|
206
|
+
"id" in cell
|
|
207
|
+
and int(meta.get("nbformat", 0)) == 4
|
|
208
|
+
and int(meta.get("nbformat_minor", 0)) <= 4
|
|
209
|
+
):
|
|
201
210
|
# strip cell IDs if we have notebook format 4.0-4.4
|
|
202
211
|
del cell["id"]
|
|
203
212
|
if (
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: jupyter-ydoc
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.3
|
|
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.
|
|
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=
|
|
2
|
+
jupyter_ydoc/_version.py,sha256=OLYtXORaL3x7VPbOq7Rk3mO5-tBORwYj5yTCK4j-Zec,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=
|
|
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.
|
|
11
|
-
jupyter_ydoc-3.0.
|
|
12
|
-
jupyter_ydoc-3.0.
|
|
13
|
-
jupyter_ydoc-3.0.
|
|
14
|
-
jupyter_ydoc-3.0.
|
|
10
|
+
jupyter_ydoc-3.0.3.dist-info/METADATA,sha256=yK3FqeRBS3XSG_tWEp3N7l7yQ9feC57uvZqX8ocZx8Y,3063
|
|
11
|
+
jupyter_ydoc-3.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
jupyter_ydoc-3.0.3.dist-info/entry_points.txt,sha256=lgvRG-rpsjRKf8cy7LpO7fqwwXy0sBVMCwhGOHgn4mc,164
|
|
13
|
+
jupyter_ydoc-3.0.3.dist-info/licenses/LICENSE,sha256=dqphsFbhnlzPK7Vlkc66Zc7g7PS-e1dln07GXIVpFCQ,1567
|
|
14
|
+
jupyter_ydoc-3.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|