You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jupyter nbextension install ... fails due to missing ipython_genutils and maybe more
after installing jupyterlab, jupyter nbextension install ... creates a symlink to itself because ./share/jupyter/nbextensions doesn't exist, see ipython._prefix
but ./share/jupyter/labextensions exists
after installing jupyterlab, jupyter labextension ... fails due to missing jupyter_packaging
eventually, with the obvious fixes to those issues, the commands didn't fail, but jupyter lab now says [W ... LabApp] ipyvolume is not a valid extension
Those issues could be related to my setup, so it would be great to know what the actual requirements for this project are (like npm version ...) and if anyone is able to create a developer installation in a clean Python environment.
Then pipenv run python -m jupyter nbextension install --py --overwrite --symlink --sys-prefix ipyvolume fails because there is no jupyter-nbextension in the search path, except the system one. This one spawns the system interpreter which can't find ipyvolume for apparent reason. So I run pipenv run pip install jupyterlab and get
Installing /home/user/.local/share/virtualenvs/ipyvolume-NKv-9FhU/share/jupyter/nbextensions/ipyvolume/ -> ipyvolume
Symlinking: /home/user/.local/share/virtualenvs/ipyvolume-NKv-9FhU/share/jupyter/nbextensions/ipyvolume -> /home/user/.local/share/virtualenvs/ipyvolume-NKv-9FhU/share/jupyter/nbextensions/ipyvolume
- Validating: problems found:
X require: /home/user/.local/share/virtualenvs/ipyvolume-NKv-9FhU/share/jupyter/nbextensions/ipyvolume/extension.js
OK section: notebook
Full spec: {'section': 'notebook', 'src': '/home/user/.local/share/virtualenvs/ipyvolume-NKv-9FhU/share/jupyter/nbextensions/ipyvolume/', 'dest': 'ipyvolume', 'require': 'ipyvolume/extension'}
To initialize this nbextension in the browser every time the notebook (or other app) loads:
jupyter nbextension enable ipyvolume --py --sys-prefix
This is the symlink to itself due to non-existent nbextensions. Output of find share:
Activity
maartenbreddels commentedon Jan 18, 2023
Hi,
That is odd to start with, can you share the full error msg and maybe library versions of notebook, ipython and ipython_genutils?
Regards,
Maarten
notEvil commentedon Jan 18, 2023
In a clean master, when I run
pipenv run pip install -e .it saysDetails
Then
pipenv run python -m jupyter nbextension install --py --overwrite --symlink --sys-prefix ipyvolumefails because there is nojupyter-nbextensionin the search path, except the system one. This one spawns the system interpreter which can't find ipyvolume for apparent reason. So I runpipenv run pip install jupyterlaband getDetails
Now the same command gives me
Details
This is the symlink to itself due to non-existent
nbextensions. Output offind share:edit: couldn't reproduce the point you asked about, but the others are still valid. The jupyter situtation is unfortunate but easy to avoid.
maartenbreddels commentedon Jan 27, 2023
I reproduced this partially using a venv, I've update the README: d4c541f
Does that help?
Maybe your JS build does not get triggered.
notEvil commentedon Jan 28, 2023
Yes it does. The last command still requires jupyter_packaging, but its a minor nuisance. Thanks a lot!