-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nglview not working with vscode-jupyter #15757
Comments
Same issue for me |
There seems to be some change in nglview that seems to be causing this issue in VS code. |
@DonJayamanne I tried it with 2.7.7 and get the same outcome. Maybe this trace helps (is from 3.1.2 nglview though)
|
same issue here |
Helo, I have the same problem in VSC, please someone found a solution? Thanks |
@DonJayamanne I tried many different versions and got version 3.0.8 (installed via conda conda-forge::nglview=3.0.8) to work with VScode on linux version 1.91.1 Hope this helps |
This seems to be caused by some upstream issue in nglview, I haven't had a chance to identify the root cause as of yet. |
There is a change in NGL (which is being used by nglview) in the way it is packaged. The change happened after nglview 3.8. But nglview works fine with notebook (using lab) and lab. |
@hainm its still failing at my end in Jupyter lab |
Can you please try install nglview via conda/mamba from conda-forget channel? I am surprised that it doesn't work for you since I tried myself before publishing the package. Cheers |
@DonJayamanne
Exact steps:
|
There is the same problem for Bokeh/ Panel. See bokeh/jupyter_bokeh#201 |
This comment was marked as off-topic.
This comment was marked as off-topic.
@invemichele You are running into #16008 |
Related issue nglviewer/nglview#1085.
The example above works in jupyter notebook, but it does not work in vscode. Changing version of nglview and ipywidgets does not fix the problem.
The important part of the log is
nglview-js-widgets is in the cdn https://cdn.jsdelivr.net/npm/nglview-js-widgets/.
jupyter.widgetScriptSources has been configured per https://github.com/microsoft/vscode-jupyter/wiki/IPyWidget-Support-in-VS-Code-Python.
It seems that something goes wrong when loading the module.
The text was updated successfully, but these errors were encountered: