Skip to content
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

JavaScript failed to load for some other reason #6

Open
TJiangBio opened this issue Jan 11, 2023 · 3 comments
Open

JavaScript failed to load for some other reason #6

TJiangBio opened this issue Jan 11, 2023 · 3 comments

Comments

@TJiangBio
Copy link

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
Copy link
Contributor

dkoes commented Jan 11, 2023

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

@TJiangBio
Copy link
Author

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
Copy link
Contributor

dkoes commented Jan 11, 2023

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants