conda install nglview -c conda-forge
下面两个命令有一个成功就可以了
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()”就可以了