ipywidgets: Embed Widgets: does not work with 3rd party widget (e.g: nglview)

Hi,

I am trying 6.0.0.beta6 version for embedding widget. This works fine with ipydigets Widgets (Text, …) but did not work with our nglview:

  • nothing shows up if hitting Embed Widgets
  • console error:
Uncaught (in promise) TypeError: Converting circular structure to JSON
    at JSON.stringify (<anonymous>)
    at :8795/nbextensions/jupyter-js-widgets/extension.js?v=20170113130756:34960
widgetsnbextension.__version__
Out[4]:
'2.0.0.beta9'

cheers. Hai

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 44 (26 by maintainers)

Most upvoted comments

Then we should add it back before the final.

Hi @hainm, ipyvolume doesn’t use it’s own widget manager (I only have some custom code to generate the html, which will hopefully go upstream one day), that would be some js code. However, it’s odd that when I open your html file, I don’t see an attempt get fetch ‘nglview-js-widgets.js’, which ipywidgets 6 did. Is this something you changed @jasongrout? Since that is ideal for testing.