nglviewer / nglview

Jupyter widget to interactively view molecular structures and trajectories
http://nglviewer.org/nglview/latest/
Other
788 stars 132 forks source link

nglview 3.1 not working with nbclassic 1.0 #1106

Open linuxrider opened 3 months ago

linuxrider commented 3 months ago

I found that nglview does not work with nbclassic 1.0. It failed to load ColormakerRegistryModel from module nglview-js-widgets when importing the library. Furthermore, with nglview.demo() it could not load NGLModel. With jupyterlab it works without problems, however. I tested it with Firefox and Chromium with the same result for both. I think a similar issue was reported with vscode #1085.

Here the screenshots for the different environments micromamba create -n nglview jupyterlab=4.1.5 nbclassic=1.0 nglview=3.0.8 nbclassic nbclassic 1.0, nglview 3.0.8

micromamba create -n nglview jupyterlab=4.1.5 nbclassic=1.0 nglview=3.1.2 jupyterlab jupyterlab 4.1.5, nglview 3.1.2 nbclassic nbclassic 1.0, nglview 3.1.2

hainm commented 2 months ago

hi @linuxrider, thanks for your report.