【jupyter异常错误】Failed to load model class ‘ColormakerRegistryModel‘ from module ‘nglview-js-widgets‘

conda install nglview -c conda-forge

GitHub - nglviewer/nglview: Jupyter widget to interactively view molecular structures and trajectories

下面两个命令有一个成功就可以了 

jupyter-nbextension enable nglview --py --sys-prefix

Enabling notebook extension nglview-js-widgets/extension...
- Validating: OK

jupyter-nbextension enable widgetsnbextension --py --sys-prefix

Enabling notebook extension jupyter-js-widgets/extension...
- Validating: OK

后来一直不行............

运行命令

jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000 /mnt/d/Pycharm_workspace/Pharmacophore_screening

 总是出现错误,原来是因为我没有将“viewer._show_html("screener_matches.html")”删除,应该直接到“viewer.show()”就可以了

猜你喜欢

转载自blog.csdn.net/weixin_43135178/article/details/132217016