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 13, 2023
1 parent 00297b7 commit 932f3b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
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 932f3b5

Please sign in to comment.