Description
Description
I have an ipytree widget in Jupyterlab, and on clicking a node of it getting errors:
Error serializing widget state attribute: selected_nodes
serialize @ 595.7f2125f3d2c7376588c2.js?v=7f2125f3d2c7376588c2:1
sync @ 595.7f2125f3d2c7376588c2.js?v=7f2125f3d2c7376588c2:1
save @ 644.7d1bff49f8e38fac4070.js?v=7d1bff49f8e38fac4070:1
save_changes @ 595.7f2125f3d2c7376588c2.js?v=7f2125f3d2c7376588c2:1
(anonymous) @ 568.c44c0ae4f70f7df0fe86.js?v=c44c0ae4f70f7df0fe86:1
dispatch @ 755.71bcc770291b01d6ebaa.js?v=71bcc770291b01d6ebaa:2
v.handle @ 755.71bcc770291b01d6ebaa.js?v=71bcc770291b01d6ebaa:2
trigger @ 755.71bcc770291b01d6ebaa.js?v=71bcc770291b01d6ebaa:2
triggerHandler @ 755.71bcc770291b01d6ebaa.js?v=71bcc770291b01d6ebaa:2
trigger @ 287.fd063a1253f3266560f7.js?v=fd063a1253f3266560f7:2
select_node @ 287.fd063a1253f3266560f7.js?v=fd063a1253f3266560f7:2
activate_node @ 287.fd063a1253f3266560f7.js?v=fd063a1253f3266560f7:2
(anonymous) @ 287.fd063a1253f3266560f7.js?v=fd063a1253f3266560f7:2
dispatch @ 755.71bcc770291b01d6ebaa.js?v=71bcc770291b01d6ebaa:2
v.handle @ 755.71bcc770291b01d6ebaa.js?v=71bcc770291b01d6ebaa:2
Uncaught DOMException: Failed to execute 'structuredClone' on 'Window': # could not be cloned.
Reproduce
In Jupyterlab (3.4.5):
from ipytree import Node, Tree
tree = Tree()
subtree = Node()
tree.add_node(subtree)
subtree.add_node(Node())
tree
Expected behavior
Context
When downgrading to ipywidgets==8.0.4 and jupyterlab_widgets==3.0.5 versions the widget works as expected without errors.
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here. You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` (or `jupyter notebook` if you use notebook) here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here.
If using JupyterLab
- JupyterLab version:
Installed Labextensions
JupyterLab v3.4.5 /opt/conda/share/jupyter/labextensions jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments) jupyter-offlinenotebook v0.2.2 enabled OK ipytree v0.2.2 enabled OK ipylab v0.6.0 enabled OK (python, ipylab) @jupyterlab/plugin-playground v0.3.0 enabled OK (python, jupyterlab-plugin-playground) @jupyter-widgets/jupyterlab-manager v5.0.6 enabled OK (python, jupyterlab_widgets)