diff --git a/plugins/yjs/fps_yjs/ywidgets/widgets.py b/plugins/yjs/fps_yjs/ywidgets/widgets.py index 4da5e247..2b03eb32 100644 --- a/plugins/yjs/fps_yjs/ywidgets/widgets.py +++ b/plugins/yjs/fps_yjs/ywidgets/widgets.py @@ -24,7 +24,7 @@ def comm_open(self, msg, comm) -> None: name = msg["metadata"]["ymodel_name"] comm_id = msg["content"]["comm_id"] self.comm = comm - model = self.ydocs[name](primary=False) + model = self.ydocs[f"{name}Model"]() self.widgets[comm_id] = {"model": model, "comm": comm} msg = sync(model.ydoc) comm.send(**msg) diff --git a/plugins/yjs/pyproject.toml b/plugins/yjs/pyproject.toml index d395ae81..a4609a26 100644 --- a/plugins/yjs/pyproject.toml +++ b/plugins/yjs/pyproject.toml @@ -8,7 +8,7 @@ description = "An FPS plugin for the Yjs API" keywords = [ "jupyter", "server", "fastapi", "plugins" ] requires-python = ">=3.8" dependencies = [ - "pycrdt >=0.3.4,<0.4.0", + "pycrdt >=0.4.1,<0.5.0", "jupyverse-api >=0.1.2,<1", ] dynamic = [ "version",] diff --git a/pyproject.toml b/pyproject.toml index 5be881b1..0c84f4c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,8 +54,8 @@ test = [ "requests", "websockets", "ipykernel", - "ypywidgets >=0.5.0,<0.6.0", - "ypywidgets-textual", + "ypywidgets >=0.6.1,<0.7.0", + "ypywidgets-textual >=0.2.1,<0.3.0", ] docs = [ "mkdocs", "mkdocs-material" ]