Open acelere opened 3 years ago
@acelere this is probably because your lab extension version doesn't match the python package version for bqplot
.
I'm not sure quite why this would happen when installing ipyvolume
, because your Python package version for bqplot
hasn't changed. However, to confirm that this is the problem, if you run jupyter labextension list
, I expect you'll see bqplot
with a version that is not 0.5.23
As an aside, it looks like you're using JupyterLab 3. ipyvolume
is not yet compatible with JLab3, so it shouldn't work. It might be that if your container is initially configured using conda and then pip was used later, but without further information I'm just guessing here.
Thanks for the nicely formatted pip freeze
table. It makes it far easier to compare packages.
Tks for the comments @agoose77
Yes, it is JupyterLab 3... I missed that ipyvolume still does not support that.
In any case, here is the jupyter labextension list
without ipyvolume:
$ jupyter labextension list
JupyterLab v3.0.9
/usr/local/share/jupyter/labextensions
jupyter-matplotlib v0.8.3 enabled OK
bqplot v0.5.23 enabled OK
@jupyter-widgets/jupyterlab-manager v3.0.0 enabled OK (python, jupyterlab_widgets)
@voila-dashboards/jupyterlab-preview v2.0.1 enabled OK (python, voila)
Other labextensions (built into JupyterLab)
app dir: /usr/local/share/jupyter/lab
@jupyterlab/debugger v3.0.7 enabled OK
WITH ipyvolume
with ipyvolume
$ jupyter labextension list
JupyterLab v3.0.9
/usr/local/share/jupyter/labextensions
jupyter-matplotlib v0.8.3 enabled OK
bqplot v0.5.23 enabled OK
jupyterlab-datawidgets v7.0.0 enabled OK
@jupyter-widgets/jupyterlab-manager v3.0.0 enabled OK (python, jupyterlab_widgets)
@voila-dashboards/jupyterlab-preview v2.0.1 enabled OK (python, voila)
Other labextensions (built into JupyterLab)
app dir: /usr/local/share/jupyter/lab
@jupyterlab/debugger v3.0.7 enabled OK
jupyter-threejs v2.2.0 enabled OK
Now, oddly enough, if I render the notebook with voila, it shows the widget...notice the "lab" version on the left and the "voila" version on the right...
Voila side-steps the JupyterLab extension loading process, and uses CDNs instead to load them directly (IIRC). It's wierd that ipyvolume
somehow breaks your bqplot registration... I wonder if it is somehow related to the threejs module, which is probably not correctly resolving (more guesswork from me).
I would suggest either
OK. Thanks for having a look into this. I will wait for the JL3 support release... I will leave this open and if anyone would like me to try out different configurations or get logs to help, I am can certainly do that.
I would like to add here that ipyvolume does not seem to work for me on Jupyterlab 3.1. After the first default installed pip and lab packages, I tried some combinations but I had no luck.
Let me start by saying this library is awesome and thank you for making it available.
There seems to be some conflict between ipyvolume and bqplot.
I am running jupyterhub with dockerspawner and I have one fresh container with ipyvolume and another one without. When I create a bqplot marketmap on the container without, it renders fine:
But when I run the same code using the container with ipyvolume installed, it fails to display the widget:
The following is a list from pip freeze on each container:
Perhaps this is linked with bqplot d3 #1245???
This is the notebook code: