Skip to content

Commit

Permalink
Update with ypywidgets v0.6.1 and ypywidgets-textual 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Nov 15, 2023
1 parent 00297b7 commit dbca4fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/yjs/fps_yjs/ywidgets/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion plugins/yjs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",]
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

Expand Down

0 comments on commit dbca4fe

Please sign in to comment.