jupyter-ydoc 3.0.1__py3-none-any.whl → 3.0.2__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.1'
4
+ __version__ = VERSION = '3.0.2'
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
- output["text"] = Array(output.get("text", []))
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"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: jupyter-ydoc
3
- Version: 3.0.1
3
+ Version: 3.0.2
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=oAEZ2yh_zMvkBAoa93w7HycRyswN7j-GIDTliUiHSEk,171
2
+ jupyter_ydoc/_version.py,sha256=ym7FXTXxoP5QoczbdYAgP1543o7h8doLQ16oWFE2qHA,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=itpZ4D4e6luu5_jowdbzJMpYU8Q_avKRo_duK2YNj7U,8684
8
+ jupyter_ydoc/ynotebook.py,sha256=wjecaheJvw6zlVr0Am4H23Egs6oWtAiSDH18HPkQSIo,8877
9
9
  jupyter_ydoc/yunicode.py,sha256=Um1BIGwne10ZQODeRA1qIi_vss-u3MKsjZNjbKodfQM,2385
10
- jupyter_ydoc-3.0.1.dist-info/METADATA,sha256=eo83lHzxroa-R9Osw67WF6HKp7mRLC3WpBDcAp1aLJo,3041
11
- jupyter_ydoc-3.0.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
12
- jupyter_ydoc-3.0.1.dist-info/entry_points.txt,sha256=lgvRG-rpsjRKf8cy7LpO7fqwwXy0sBVMCwhGOHgn4mc,164
13
- jupyter_ydoc-3.0.1.dist-info/licenses/LICENSE,sha256=dqphsFbhnlzPK7Vlkc66Zc7g7PS-e1dln07GXIVpFCQ,1567
14
- jupyter_ydoc-3.0.1.dist-info/RECORD,,
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,,