You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I have 2 clients A and B collaborating on the same notebook, the widget is executed in client A, so it is rendered correctly on A but on B it only shows the repr string of the widget.
The root cause is that the _trusted property of OutputAreaModel of the output cell in client A is set to true after the execution but in B this property is not synced through the shared model so Lab refuses to render the widget.
Reproduce
Start a collaborative session and create a widget on one client, other clients will display the repr string of created widget.
Go to Command Palette and trust the notebook on all clients, the widget will be displayed correctly.
Expected behavior
Widgets are displayed on all clients at execution.
Context
JupyterLab version: 3.2.0
ipywidget: 7.6.5
The text was updated successfully, but these errors were encountered:
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
Hi @trungleduc! Thanks for opening the issue.
The problem is that the trusted property in the CellModel is not shared between clients. By adding this property to the shared models, we will propagate the change to client B and update the property on the OutputAreaModel.
Do you want to open a PR? I can also look at it.
Description
Let's say I have 2 clients A and B collaborating on the same notebook, the widget is executed in client A, so it is rendered correctly on A but on B it only shows the
repr
string of the widget.The root cause is that the
_trusted
property ofOutputAreaModel
of the output cell in client A is set totrue
after the execution but in B this property is not synced through the shared model so Lab refuses to render the widget.Reproduce
repr
string of created widget.Command Palette
and trust the notebook on all clients, the widget will be displayed correctly.Expected behavior
Widgets are displayed on all clients at execution.
Context
The text was updated successfully, but these errors were encountered: