Closed AK6263 closed 3 years ago
hi @AK6263: You don't need that step anymore. nglview
>= 3.0 should work out of the box in lab. Cheers.
I have nglview 3.0.3 and under nglview-js-widgets/style/ only has index.js. Same error. no base.js log: [webpack-cli] ModuleNotFoundError: Module not found: Error: Can't resolve './base.css' in '/opt/conda/envs/mybio/share/jupyter/lab/staging/node_modules/nglview-js-widgets/style'
I have nglview 3.0.3 and under nglview-js-widgets/style/ only has index.js. Same error. no base.js log: [webpack-cli] ModuleNotFoundError: Module not found: Error: Can't resolve './base.css' in '/opt/conda/envs/mybio/share/jupyter/lab/staging/node_modules/nglview-js-widgets/style'
You don't need to build the lab extension by yourself anymore. pip install nglview
should be sufficient (or conda install ...)
Thank you for the quick responding. I tried
pip install nglview
Successfully installed ipywidgets-7.7.1 jupyterlab-widgets-1.1.1 nglview-3.0.3 widgetsnbextension-3.6.1
jupyter-nbextension enable nglview --py --sys-prefix
The out put:
`Enabling notebook extension nglview-js-widgets/extension...
hi @szcc Can you please check and delete if you have those folders in your machines?
$HOME/.local/share/jupyter/nbextensions/nglview-js-widgets/, if Yes, delete it.
If you're using macos, might need to delete the folder $HOME/Library/Jupyter/nbextensions/nglview-js-widgets/
I found there are two nglview-js-widgets
find: ‘/etc/ssl/private’: Permission denied /opt/conda/share/jupyter/nbextensions/nglview-js-widgets /opt/conda/share/jupyter/labextensions/nglview-js-widgets find: ‘/proc/tty/driver’: Permission denied find: ‘/root’: Permission denied find: ‘/var/cache/apt/archives/partial’: Permission denied find: ‘/var/cache/ldconfig’: Permission denied
I removed nbextensions/nglview-js-widgets and reran the code and still did not get the image... only NGLWidget()
On Thu, Jun 30, 2022 at 12:05 PM Hai Nguyen @.***> wrote:
hi @szcc https://github.com/szcc Can you please check and delete if you have those folders in your machines?
$HOME/.local/share/jupyter/nbextensions/nglview-js-widgets/, if Yes, delete it.
If you're using macos, might need to delete the folder $HOME/Library/Jupyter/nbextensions/nglview-js-widgets/
— Reply to this email directly, view it on GitHub https://github.com/nglviewer/nglview/issues/983#issuecomment-1171404263, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLFBA7F7G54FWENW424JFLVRXAUHANCNFSM46E6QTDA . You are receiving this because you were mentioned.Message ID: <nglviewer/nglview/issues/983/1171404263 @.***>
hi @szcc Can you please check and delete if you have those folders in your machines?
$HOME/.local/share/jupyter/nbextensions/nglview-js-widgets/, if Yes, delete it. If you're using macos, might need to delete the folder $HOME/Library/Jupyter/nbextensions/nglview-js-widgets/
@szcc I really mean about above paths. Please double check them. I don't mean to delete the paths you posted. After you check (and delete if existing) the paths I sent, please uninstall nglview and reinstall it (since you deleted the wrong paths).
Thanks for being patient with me. I did not see nglview under local/share ls -la $HOME/.local/share/jupyter/
[image: image.png] Also I uninstalled nglview and reinstalled it : [image: image.png] still no image...
On Thu, Jun 30, 2022 at 1:31 PM Hai Nguyen @.***> wrote:
hi @szcc https://github.com/szcc Can you please check and delete if you have those folders in your machines?
$HOME/.local/share/jupyter/nbextensions/nglview-js-widgets/, if Yes, delete it.
If you're using macos, might need to delete the folder $HOME/Library/Jupyter/nbextensions/nglview-js-widgets/
@szcc https://github.com/szcc I really mean about above paths. Please double check them. I don't mean to delete the paths you posted. After you check (and delete if existing) the paths I sent, please uninstall nglview and reinstall it (since you deleted the wrong paths).
— Reply to this email directly, view it on GitHub https://github.com/nglviewer/nglview/issues/983#issuecomment-1171494028, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLFBA2HC7CQCNLMRBGLQTDVRXKW5ANCNFSM46E6QTDA . You are receiving this because you were mentioned.Message ID: @.***>
um, while in your notebook, can you please open the browser console to read the error message
-> Then click "Console" tab
And please post your screenshot of of the notebook.
[image: image.png]
On Thu, Jun 30, 2022 at 2:02 PM Hai Nguyen @.***> wrote:
um, while in your notebook, can you please open the browser console to read the error message
[image: image] https://user-images.githubusercontent.com/4451957/176746131-c07a3b60-7c48-4e10-8d2c-625ca586560c.png -> Then click "Console" tab
And please post your screenshot of of the notebook.
— Reply to this email directly, view it on GitHub https://github.com/nglviewer/nglview/issues/983#issuecomment-1171520269, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLFBA2BJTFRLIVF655AKELVRXOJVANCNFSM46E6QTDA . You are receiving this because you were mentioned.Message ID: @.***>
After I refresh the notebook. It works. Thanks a lot.
On Thu, Jun 30, 2022 at 2:13 PM Sue Nolte @.***> wrote:
[image: image.png]
On Thu, Jun 30, 2022 at 2:02 PM Hai Nguyen @.***> wrote:
um, while in your notebook, can you please open the browser console to read the error message
[image: image] https://user-images.githubusercontent.com/4451957/176746131-c07a3b60-7c48-4e10-8d2c-625ca586560c.png -> Then click "Console" tab
And please post your screenshot of of the notebook.
— Reply to this email directly, view it on GitHub https://github.com/nglviewer/nglview/issues/983#issuecomment-1171520269, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLFBA2BJTFRLIVF655AKELVRXOJVANCNFSM46E6QTDA . You are receiving this because you were mentioned.Message ID: @.***>
After I refresh the notebook. It works. Thanks a lot.
Great. Cheers
PS: By the way, attaching the image via email won't work. I don't see any of your images.
Maybe github stripped the images???
On Thu, Jun 30, 2022 at 2:29 PM Hai Nguyen @.***> wrote:
After I refresh the notebook. It works. Thanks a lot.
Great. Cheers
PS: By the way, attaching the image via email won't work. I don't see any of your images.
— Reply to this email directly, view it on GitHub https://github.com/nglviewer/nglview/issues/983#issuecomment-1171543742, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLFBAZBRQHVERCTJ3CHPODVRXRSNANCNFSM46E6QTDA . You are receiving this because you were mentioned.Message ID: @.***>
I used the following command and got this issue. I have attached the log file as well.
The Log File