jupyter-ydoc 3.0.0b0__tar.gz → 3.0.2__tar.gz

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.
Files changed (44) hide show
  1. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/.pre-commit-config.yaml +1 -1
  2. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/CHANGELOG.md +84 -2
  3. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/PKG-INFO +3 -3
  4. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/javascript/package.json +1 -1
  5. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/jupyter_ydoc/_version.py +1 -1
  6. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/jupyter_ydoc/ynotebook.py +6 -1
  7. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/pyproject.toml +2 -1
  8. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/.github/dependabot.yml +0 -0
  9. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/.github/workflows/auto_author_assign.yml +0 -0
  10. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/.github/workflows/check-release.yml +0 -0
  11. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/.github/workflows/enforce-label.yml +0 -0
  12. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/.github/workflows/license-header.yml +0 -0
  13. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/.github/workflows/prep-release.yml +0 -0
  14. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/.github/workflows/publish-release.yml +0 -0
  15. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/.github/workflows/test.yml +0 -0
  16. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/.gitignore +0 -0
  17. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/.licenserc.yaml +0 -0
  18. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/.yarn/releases/yarn-3.4.1.cjs +0 -0
  19. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/.yarnrc.yml +0 -0
  20. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/LICENSE +0 -0
  21. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/README.md +0 -0
  22. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/docs/Makefile +0 -0
  23. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/docs/make.bat +0 -0
  24. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/docs/source/_static/jupyter_logo.svg +0 -0
  25. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/docs/source/_static/logo-icon.png +0 -0
  26. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/docs/source/conf.py +0 -0
  27. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/docs/source/custom.md +0 -0
  28. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/docs/source/index.md +0 -0
  29. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/docs/source/javascript_api.rst +0 -0
  30. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/docs/source/overview.md +0 -0
  31. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/docs/source/python_api.rst +0 -0
  32. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/docs/source/schema.md +0 -0
  33. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/jupyter_ydoc/__init__.py +0 -0
  34. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/jupyter_ydoc/py.typed +0 -0
  35. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/jupyter_ydoc/utils.py +0 -0
  36. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/jupyter_ydoc/ybasedoc.py +0 -0
  37. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/jupyter_ydoc/yblob.py +0 -0
  38. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/jupyter_ydoc/yfile.py +0 -0
  39. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/jupyter_ydoc/yunicode.py +0 -0
  40. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/lerna.json +0 -0
  41. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/package.json +0 -0
  42. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/pytest.ini +0 -0
  43. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/readthedocs.yml +0 -0
  44. {jupyter_ydoc-3.0.0b0 → jupyter_ydoc-3.0.2}/yarn.lock +0 -0
@@ -17,7 +17,7 @@ repos:
17
17
  exclude: ^\.yarn
18
18
 
19
19
  - repo: https://github.com/astral-sh/ruff-pre-commit
20
- rev: v0.6.9
20
+ rev: v0.8.0
21
21
  hooks:
22
22
  - id: ruff
23
23
  args: [--fix, --show-fixes]
@@ -2,6 +2,90 @@
2
2
 
3
3
  <!-- <START NEW CHANGELOG ENTRY> -->
4
4
 
5
+ ## 3.0.2
6
+
7
+ ([Full Changelog](https://github.com/jupyter-server/jupyter_ydoc/compare/@jupyter/ydoc@3.0.1...db70566443ffc92e9bf62e2064e9b928ca2e96d7))
8
+
9
+ ### Bugs fixed
10
+
11
+ - Fix stream output [#294](https://github.com/jupyter-server/jupyter_ydoc/pull/294) ([@davidbrochart](https://github.com/davidbrochart))
12
+
13
+ ### Maintenance and upkeep improvements
14
+
15
+ ### Contributors to this release
16
+
17
+ ([GitHub contributors page for this release](https://github.com/jupyter-server/jupyter_ydoc/graphs/contributors?from=2024-11-18&to=2024-12-02&type=c))
18
+
19
+ [@davidbrochart](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Adavidbrochart+updated%3A2024-11-18..2024-12-02&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Apre-commit-ci+updated%3A2024-11-18..2024-12-02&type=Issues)
20
+
21
+ <!-- <END NEW CHANGELOG ENTRY> -->
22
+
23
+ ## 3.0.1
24
+
25
+ ([Full Changelog](https://github.com/jupyter-server/jupyter_ydoc/compare/@jupyter/ydoc@3.0.0...2ed6216e488db36c2757390c96195db9909e7908))
26
+
27
+ ### Maintenance and upkeep improvements
28
+
29
+ - Fix tests [#288](https://github.com/jupyter-server/jupyter_ydoc/pull/288) ([@davidbrochart](https://github.com/davidbrochart))
30
+
31
+ ### Contributors to this release
32
+
33
+ ([GitHub contributors page for this release](https://github.com/jupyter-server/jupyter_ydoc/graphs/contributors?from=2024-10-29&to=2024-11-18&type=c))
34
+
35
+ [@davidbrochart](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Adavidbrochart+updated%3A2024-10-29..2024-11-18&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Apre-commit-ci+updated%3A2024-10-29..2024-11-18&type=Issues)
36
+
37
+ ## 3.0.0
38
+
39
+ ([Full Changelog](https://github.com/jupyter-server/jupyter_ydoc/compare/@jupyter/ydoc@2.0.1...8cf3b0f53bf763edf254e91fed65aaa7062e3250))
40
+
41
+ ### Enhancements made
42
+
43
+ - Add the awareness in the shared document interface [#282](https://github.com/jupyter-server/jupyter_ydoc/pull/282) ([@brichet](https://github.com/brichet))
44
+ - Doc awareness [#277](https://github.com/jupyter-server/jupyter_ydoc/pull/277) ([@brichet](https://github.com/brichet))
45
+ - Improve notebook output stream initialization [#275](https://github.com/jupyter-server/jupyter_ydoc/pull/275) ([@davidbrochart](https://github.com/davidbrochart))
46
+ - Add YDocument source getter/setter [#273](https://github.com/jupyter-server/jupyter_ydoc/pull/273) ([@davidbrochart](https://github.com/davidbrochart))
47
+ - Allow empty notebook [#266](https://github.com/jupyter-server/jupyter_ydoc/pull/266) ([@davidbrochart](https://github.com/davidbrochart))
48
+ - Add `streamOutputChange` attribute to cell change object [#264](https://github.com/jupyter-server/jupyter_ydoc/pull/264) ([@davidbrochart](https://github.com/davidbrochart))
49
+ - Add `hash` property with setter and getter [#262](https://github.com/jupyter-server/jupyter_ydoc/pull/262) ([@krassowski](https://github.com/krassowski))
50
+ - Expose `execution_state` in the JS package [#259](https://github.com/jupyter-server/jupyter_ydoc/pull/259) ([@krassowski](https://github.com/krassowski))
51
+ - Add undo_manager to Y documents [#248](https://github.com/jupyter-server/jupyter_ydoc/pull/248) ([@davidbrochart](https://github.com/davidbrochart))
52
+ - Add optional origin to transaction, filter out 'modeldb' origin [#246](https://github.com/jupyter-server/jupyter_ydoc/pull/246) ([@davidbrochart](https://github.com/davidbrochart))
53
+ - Add appendStreamOutput and removeStreamOutput methods [#241](https://github.com/jupyter-server/jupyter_ydoc/pull/241) ([@davidbrochart](https://github.com/davidbrochart))
54
+ - Update python>=3.8, pycrdt>=0.8.11, pre-commit, README [#217](https://github.com/jupyter-server/jupyter_ydoc/pull/217) ([@davidbrochart](https://github.com/davidbrochart))
55
+ - Store YBlob as bytes, not base64-encoded string [#209](https://github.com/jupyter-server/jupyter_ydoc/pull/209) ([@davidbrochart](https://github.com/davidbrochart))
56
+ - Change notebook code cell stream output schema [#201](https://github.com/jupyter-server/jupyter_ydoc/pull/201) ([@davidbrochart](https://github.com/davidbrochart))
57
+ - Add cell execution_state [#197](https://github.com/jupyter-server/jupyter_ydoc/pull/197) ([@davidbrochart](https://github.com/davidbrochart))
58
+
59
+ ### Bugs fixed
60
+
61
+ - Fix attachments change attribute assignment [#260](https://github.com/jupyter-server/jupyter_ydoc/pull/260) ([@krassowski](https://github.com/krassowski))
62
+ - Fix createOutputs, rename 'modeldb' origin to 'silent-change' [#254](https://github.com/jupyter-server/jupyter_ydoc/pull/254) ([@davidbrochart](https://github.com/davidbrochart))
63
+
64
+ ### Maintenance and upkeep improvements
65
+
66
+ - Revert #266 [#280](https://github.com/jupyter-server/jupyter_ydoc/pull/280) ([@davidbrochart](https://github.com/davidbrochart))
67
+ - Improve notebook output stream initialization [#275](https://github.com/jupyter-server/jupyter_ydoc/pull/275) ([@davidbrochart](https://github.com/davidbrochart))
68
+ - Fix dict type for python 3.8 [#253](https://github.com/jupyter-server/jupyter_ydoc/pull/253) ([@davidbrochart](https://github.com/davidbrochart))
69
+ - Bump toshimaru/auto-author-assign from 2.1.0 to 2.1.1 [#247](https://github.com/jupyter-server/jupyter_ydoc/pull/247) ([@dependabot](https://github.com/dependabot))
70
+ - Revert publish 3.0.0a0 (9c87cfd7c7e967a1fbef8ce96899d426862e84fb) [#245](https://github.com/jupyter-server/jupyter_ydoc/pull/245) ([@davidbrochart](https://github.com/davidbrochart))
71
+ - Update releaser workflows [#244](https://github.com/jupyter-server/jupyter_ydoc/pull/244) ([@jtpio](https://github.com/jtpio))
72
+ - Bump notebook version 1.0.0 -> 2.0.0 [#236](https://github.com/jupyter-server/jupyter_ydoc/pull/236) ([@davidbrochart](https://github.com/davidbrochart))
73
+ - Fix subscription type, update pycrdt>=0.8.16 [#222](https://github.com/jupyter-server/jupyter_ydoc/pull/222) ([@davidbrochart](https://github.com/davidbrochart))
74
+ - Update python>=3.8, pycrdt>=0.8.11, pre-commit, README [#217](https://github.com/jupyter-server/jupyter_ydoc/pull/217) ([@davidbrochart](https://github.com/davidbrochart))
75
+ - Bump pre-commit/action from 3.0.0 to 3.0.1 [#215](https://github.com/jupyter-server/jupyter_ydoc/pull/215) ([@dependabot](https://github.com/dependabot))
76
+ - Remove mention to y_py in docs [#214](https://github.com/jupyter-server/jupyter_ydoc/pull/214) ([@martinRenou](https://github.com/martinRenou))
77
+ - Bump toshimaru/auto-author-assign from 2.0.1 to 2.1.0 [#212](https://github.com/jupyter-server/jupyter_ydoc/pull/212) ([@dependabot](https://github.com/dependabot))
78
+
79
+ ### Documentation improvements
80
+
81
+ - Remove mention to y_py in docs [#214](https://github.com/jupyter-server/jupyter_ydoc/pull/214) ([@martinRenou](https://github.com/martinRenou))
82
+
83
+ ### Contributors to this release
84
+
85
+ ([GitHub contributors page for this release](https://github.com/jupyter-server/jupyter_ydoc/graphs/contributors?from=2023-12-26&to=2024-10-29&type=c))
86
+
87
+ [@brichet](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Abrichet+updated%3A2023-12-26..2024-10-29&type=Issues) | [@davidbrochart](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Adavidbrochart+updated%3A2023-12-26..2024-10-29&type=Issues) | [@dependabot](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Adependabot+updated%3A2023-12-26..2024-10-29&type=Issues) | [@jtpio](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Ajtpio+updated%3A2023-12-26..2024-10-29&type=Issues) | [@krassowski](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Akrassowski+updated%3A2023-12-26..2024-10-29&type=Issues) | [@lumberbot-app](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Alumberbot-app+updated%3A2023-12-26..2024-10-29&type=Issues) | [@martinRenou](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3AmartinRenou+updated%3A2023-12-26..2024-10-29&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Apre-commit-ci+updated%3A2023-12-26..2024-10-29&type=Issues) | [@welcome](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Awelcome+updated%3A2023-12-26..2024-10-29&type=Issues) | [@Zsailer](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3AZsailer+updated%3A2023-12-26..2024-10-29&type=Issues)
88
+
5
89
  ## 3.0.0b0
6
90
 
7
91
  ([Full Changelog](https://github.com/jupyter-server/jupyter_ydoc/compare/@jupyter/ydoc@3.0.0-a10...5a205d912bb399684a2886d4d323b77669f63eb8))
@@ -16,8 +100,6 @@
16
100
 
17
101
  [@brichet](https://github.com/search?q=repo%3Ajupyter-server%2Fjupyter_ydoc+involves%3Abrichet+updated%3A2024-10-17..2024-10-18&type=Issues)
18
102
 
19
- <!-- <END NEW CHANGELOG ENTRY> -->
20
-
21
103
  ## 3.0.0a10
22
104
 
23
105
  ([Full Changelog](https://github.com/jupyter-server/jupyter_ydoc/compare/@jupyter/ydoc@3.0.0-a9...dc71f641f72826232772509a8c9cea474d7ccc9f))
@@ -1,12 +1,11 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: jupyter-ydoc
3
- Version: 3.0.0b0
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
7
7
  Author-email: Jupyter Development Team <jupyter@googlegroups.com>
8
8
  License: BSD 3-Clause License
9
- License-File: LICENSE
10
9
  Keywords: jupyter,pycrdt,yjs
11
10
  Requires-Python: >=3.8
12
11
  Requires-Dist: importlib-metadata>=3.6; python_version < '3.10'
@@ -20,11 +19,12 @@ Requires-Dist: myst-parser; extra == 'docs'
20
19
  Requires-Dist: pydata-sphinx-theme; extra == 'docs'
21
20
  Requires-Dist: sphinx; extra == 'docs'
22
21
  Provides-Extra: test
22
+ Requires-Dist: httpx-ws>=0.5.2; extra == 'test'
23
+ Requires-Dist: hypercorn>=0.16.0; extra == 'test'
23
24
  Requires-Dist: pre-commit; extra == 'test'
24
25
  Requires-Dist: pycrdt-websocket<0.16.0,>=0.15.0; extra == 'test'
25
26
  Requires-Dist: pytest; extra == 'test'
26
27
  Requires-Dist: pytest-asyncio; extra == 'test'
27
- Requires-Dist: websockets>=10.0; extra == 'test'
28
28
  Description-Content-Type: text/markdown
29
29
 
30
30
  [![Build Status](https://github.com/jupyter-server/jupyter_ydoc/workflows/Tests/badge.svg)](https://github.com/jupyter-server/jupyter_ydoc/actions)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter/ydoc",
3
- "version": "3.0.0-b0",
3
+ "version": "3.0.2",
4
4
  "type": "module",
5
5
  "description": "Jupyter document structures for collaborative editing using YJS",
6
6
  "homepage": "https://github.com/jupyter-server/jupyter_ydoc",
@@ -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.0b0'
4
+ __version__ = VERSION = '3.0.2'
@@ -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"
@@ -30,7 +30,8 @@ test = [
30
30
  "pre-commit",
31
31
  "pytest",
32
32
  "pytest-asyncio",
33
- "websockets >=10.0",
33
+ "httpx-ws >=0.5.2",
34
+ "hypercorn >=0.16.0",
34
35
  "pycrdt-websocket >=0.15.0,<0.16.0",
35
36
  ]
36
37
  docs = [
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes