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
{{ message }}
Repository navigation
Notebook with ipyvolume not working : install problem ? #415
One year ago, I succeed in using ipyvolume with a python-3.7.7 kernel.
Today, working on a new virtual env (with the same python kernel), impossible to make my notebook running.
From a new ('empty') virtual env. , I have tested and limited the 'pip' install process to the following packages :
pip install numpy
pip install notebook
pip install ipywidget
a jupyter nbextensions list shows that ipyvolume and jupyter-threejs are both enabled.
For testing, I have executed the example given in the the first page of the ipyvolume website (the one with ipv.quickvolshow()), and nothing happened.
Note that when opening a new .ipynb, the following messages appears in my console :
[I 11:08:43.203 NotebookApp] Creating new notebook in /libs/common/notebooks
[W 11:08:44.385 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20220905110826 (::1) 6.030000ms referer=http://localhost:8888/notebooks/libs/common/notebooks/Untitled.ipynb?kernel_name=python3
[I 11:08:44.388 NotebookApp] Kernel started: 101fa28b-9754-4e8f-925c-b49df97331cd, name: python3
[IPKernelApp] ERROR | No such comm target registered: jupyter.widget.control
[IPKernelApp] WARNING | No such comm: 46087822-cd9d-4712-b126-b83734d4178e
Any idea of what's wrong ?
Do you reproduce these problems when installing ipyvolume ?
Any suggestion to do a correct ipyvolume install ?
(I pass a lot of time to try to fix this problem : downgrading packages / adding jupyter complement ones .. without any success).
except that I do not get the "comm target" error message (the first times i installed everything I did but not anymore).
When I run the code (e.g. ipv.quickvolshow(V, level=[0.25, 0.75], opacity=0.03, level_width=0.1, data_min=0, data_max=1)) the kernel gets stuck and I have to disconnect the notebook server. The error message I get:
Probably, I'm getting a similar result when I run a simple example using Lab:
[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'FigureModel' from module 'ipyvolume'
loadClass@http://127.0.0.1:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.bcbea9feb6e7c4da7530.js?v=bcbea9feb6e7c4da7530:1:74977
loadModelClass@http://127.0.0.1:8888/static/lab/4416.e3828afa11aab94744e3.js?v=e3828afa11aab94744e3:1:11350
_make_model@http://127.0.0.1:8888/static/lab/4416.e3828afa11aab94744e3.js?v=e3828afa11aab94744e3:1:9238
My versions:
jupyter: 3.4.7
notebook: 6.4.12
All minimal dependencies are met, including the extensions and the installation doc.
I downgraded to pythreejs=2.3.0 and it changed to ipywidgets=7.6.5, jupyterlab_widgets=3.0.3 and widgetnmextension=3.5.2. Still didn't work. I forced ipywidgets=7.7.2 and it changed the other packages to the versions @mlamarre mentioned but still no luck.
This is the error I get now:
Thank you.
I created it but still does not work. You are using windows right? I am using ubuntu 22.04.
Some errors I get are the same but I have some other ones as well:
I had the same behavior. Contrary to @patquem using pythreejs==2.3.0 worked for me.
This also worked for me. I reinstalled Jupyter, ipywidgets, and all else related to ipyvolume. After this, ipyvolume still did not work and I continued to get the two 404s that @patquem had. Downgrading pythreejs to 2.3.0 finally got ipyvolume working for the first time on my remote machine. Thanks!
Activity
patquem commentedon Sep 5, 2022
Note that when downgrading pythreejs from 2.4.1 to 2.3.0, the notebook returns the following outputs:
ixakalabadie commentedon Oct 10, 2022
I get almost the same messages. When I open the notebook:
except that I do not get the "comm target" error message (the first times i installed everything I did but not anymore).
When I run the code (e.g.
ipv.quickvolshow(V, level=[0.25, 0.75], opacity=0.03, level_width=0.1, data_min=0, data_max=1)) the kernel gets stuck and I have to disconnect the notebook server. The error message I get:If I just run ipv.figure() nothing shows but the kernel does not get stuck.
I installed all the packages with conda with the latest versions
jcfaracco commentedon Oct 12, 2022
Probably, I'm getting a similar result when I run a simple example using Lab:
My versions:
All minimal dependencies are met, including the extensions and the installation doc.
jcfaracco commentedon Oct 12, 2022
@ixakalabadie I tested using a notebook only and I got the same behavior. 😞
mlamarre commentedon Oct 13, 2022
I had the same behavior.
Contrary to @patquem using
pythreejs==2.3.0worked for me.Maybe because of the package manager. Here's how I downgraded pythreejs:
Mamba then decided on its own to use
ipywidgets==7.7.2,jupyterlab_widgets==1.1.1andwidgetnbextension==3.6.1.My notebooks were working fine July 24th 2022, pythreejs and ipywidgets both got bumped since then, so it could be any of the two.
ixakalabadie commentedon Oct 19, 2022
I downgraded to
pythreejs=2.3.0and it changed toipywidgets=7.6.5,jupyterlab_widgets=3.0.3andwidgetnmextension=3.5.2. Still didn't work. I forcedipywidgets=7.7.2and it changed the other packages to the versions @mlamarre mentioned but still no luck.This is the error I get now:
Could you @mlamarre send the list of all installed packages in your environment for comparison?
Thanks
mlamarre commentedon Oct 24, 2022
Here is my full environment,
environment.yml
I still see the following logs, but everything works fine:
ixakalabadie commentedon Oct 26, 2022
Thank you.
I created it but still does not work. You are using windows right? I am using ubuntu 22.04.
Some errors I get are the same but I have some other ones as well:
kevinwwillis commentedon Jan 3, 2023
This also worked for me. I reinstalled Jupyter, ipywidgets, and all else related to ipyvolume. After this, ipyvolume still did not work and I continued to get the two 404s that @patquem had. Downgrading pythreejs to 2.3.0 finally got ipyvolume working for the first time on my remote machine. Thanks!