question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
SylvainCorlaycommented, Apr 29, 2017

Then we should add it back before the final.

1reaction
maartenbreddelscommented, Apr 29, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NGLview-interactive molecular graphics for Jupyter notebooks.
Summary:NGLview is a Jupyter/IPython widget to interactively view molecular structures as well as trajectories from molecular dynamics simulations.
Read more >
General — NGLView 2.7.7+0.gd41dfb9.dirty documentation
There is not yet an elegant way to sync version in nglview/widget.py; js/package.json and jslab/package.json So make sure to update those.
Read more >
Use interactive widgets | PyCharm Documentation - JetBrains
PyCharm supports interactive widgets that provide integration between Python code ... To add an interactive widget to your notebook, first add a code...
Read more >
NGLview - Interactive molecular graphics for Jupyter notebooks
NGLview is a Jupyter/IPython widget to interactively view molecular structures as well as trajectories from molecular dynamics simulations.
Read more >
T017 · Advanced NGLview usage - volkamerlab.github.io
NGLView Q&A issues. A lot of hidden knowledge in these conversations! NGLView examples · Jupyter Widgets (IPyWidgets). Theory ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found