3dmol / jupyterlab_3Dmol

JupyterLab extension for py3Dmol
19 stars 2 forks source link

JavaScript failed to load for some other reason #6

Open TJiangBio opened 1 year ago

TJiangBio commented 1 year ago

Dear author, my environment seems to install jupyterlab_3dmol successfully. However, when I ran the code, an error came out, "You appear to be running in JupyterLab (or JavaScript failed to load for some other reason). You need to install the 3dmol extension: jupyter labextension install jupyterlab_3dmol".

The result of jupyter labextension list : ***miniconda3/envs/jupyterlab/share/jupyter/lab
jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
@jupyter-widgets/jupyterlab-manager v5.0.5 enabled OK (python, jupyterlab_widgets)

Other labextensions (built into JupyterLab) app dir: *miniconda3/envs/jupyterlab/share/jupyter/lab *jupyterlab_3dmol v0.1.3 enabled OK

local extensions: jupyterlab_3dmol:**/jupyterlab_3Dmol/jupyterlab_3Dmol

linked packages: jupyterlab_3dmol:**/jupyterlab_3Dmol/jupyterlab_3Dmol

The versions are: JupyterLab v3.5.2
py3dmol 0.8.0 nodejs 18.3.0

CentOS 8

Yesterday it worked, and it failed today. I'm so confused ; ) Hope you can give me some advises.

dkoes commented 1 year ago

Before I look into this any further, can you upgrade py3dmol to 2.0.0?

TJiangBio commented 1 year ago

Thanks for your answer.

I updated the py3dmol and it happened to work this noon. However, I don't think that's the reason, because the script of visualization still fails on the HTML using jupyter notebook and works on the VScode. So I guess https://github.com/3dmol/3Dmol.js/issues/362 might relate to this error.

dkoes commented 1 year ago

It isn’t clear to me what is and isn’t working. Make sure you clear all outputs and empty your cache (or test with an entirely new notebook).