ipyvolume: Error displaying widget

To setup ipyvolume, I ran the following commands on a fresh python 3.7 virtualenv on ubuntu 16.04:

pip install -U jupyterlab jupytext ipyvolume
jupyter serverextension enable jupytext
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install ipyvolume
jupyter labextension install jupyter-threejs
jupyter lab build

After attempting to use ipyvolume scatter in jupyter lab, I received the following error:

Error displaying widget
Error displaying widget: model not found

After jupyter lab build again:

Error displaying widget
Loading widget...

Anyone else having issues? I just noticed this after having used ipyvolume consistently before, so assuming an updated to jupyterlab broke something.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 15

Most upvoted comments

I was able to resolve this for jupyterlab 2.1.4 by installing:

  • latest ipyvolume release

    • pip install ipyvolume==0.6.0a6 (pre-release)
  • bqplot

    • pip install bqplot
    • jupyter labextension install bqplot

Packages’ versions:

  • Python packages:
    • jupyterlab==2.1.4
    • jupyterlab-server==1.2.0
    • ipywidgets==7.5.1
    • bqplot==0.12.17
  • labextensions (enabled npm packages)

I use jupyterlab3 and meet the same problem. However, the same code works in jupyter notebook. Thus, one possible solution: launch classic jupyter notebook and run your code again.

I finally solved the problem by using jupyter notebook. For jupyter lab, I don’t know why it doesn’t work…