Skip to content

Commit 7352a16

Browse files
authored
Remove y-py (#329)
* Remove y-py * Clear ymaps before updating new values
1 parent 4ba771b commit 7352a16

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

python/jupytercad_core/jupytercad_core/jcad_ydoc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,13 @@ def set(self, value: str) -> None:
4747
self._yobjects.clear()
4848
self._yobjects.extend(newObj)
4949

50+
self._yoptions.clear()
5051
self._yoptions.update(valueDict["options"])
52+
53+
self._ymetadata.clear()
5154
self._ymetadata.update(valueDict["metadata"])
55+
56+
self._youtputs.clear()
5257
self._youtputs.update(valueDict["outputs"])
5358

5459
def observe(self, callback: Callable[[str, Any], None]):

python/jupytercad_core/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ classifiers = [
2121
dependencies = [
2222
"jupyter_server>=2.0.6,<3",
2323
"jupyter_ydoc>=2,<3",
24-
"y-py>=0.6.0,<0.7",
2524
"jupyter-collaboration>=2,<3",
2625
]
2726
dynamic = ["version", "description", "authors", "urls", "keywords"]

python/jupytercad_lab/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ classifiers = [
2525
dependencies = [
2626
"jupyter_server>=2.0.1,<3",
2727
"jupyter-ydoc>=2,<3",
28-
"y-py>=0.6.0,<0.7",
2928
"jupyterlab>=4,<5",
3029
"jupyter-collaboration>=2,<3",
3130
"ypywidgets>=0.6.5,<0.7",

0 commit comments

Comments
 (0)