question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working in Jupyterlab

See original GitHub issue

Hi Maarten,

I was trying to use ipyvolume in Jupyterlab, but I get the message “Failed to display Jupyter Widget of type VBox”. Here is my setup:

git clone https://github.com/maartenbreddels/ipyvolume.git
mkdir ipyvolume_env
cd ipyvolume_env
pipenv install jupyterlab
pipenv shell
pipenv install -e ../ipyvolume
jupyter nbextension install --py --symlink --sys-prefix ipyvolume
jupyter nbextension enable --py --sys-prefix ipyvolume
jupyter lab ../ipyvolume/notebooks/example.ipynb

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
maartenbreddelscommented, Jan 18, 2018

Hi David,

that means that jupyter-widgets is not installed into jupyter lab (the js part of the library), this nbextensions command is only for the notebook (although all of this will be done automagically in the future). Try running this:

$ jupyter labextension install @jupyter-widgets/jupyterlab-manager

Then see if you get say a slider working

import ipywidgets
ipywidgets.FloatSlider()

If that works, try enabling ipyvolume:

$ jupyter labextension install ipyvolume

Let me know if this works out!

1reaction
maartenbreddelscommented, Jan 18, 2018

Yes, I hope the next version will include it in the source distribution, we plan to discuss this next week at a workshop actually. Also, the last argument can be a directory: https://jupyterlab-tutorial.readthedocs.io/en/latest/developer/extension_dev.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

anaconda - Jupyter Notebook/Lab Not Launching
First, try to clean the cache/cookies/offline-content in your browser. If that doesn't solve the problem, run jupyter lab build . – gdlmx. Mar ......
Read more >
Error while running 'jupyter-lab' or 'jupyter lab' on Windows ...
But when I try to run Jupyterlab using the command jupyter lab the following error message shows up: 'jupyter-lab' is not recognized as...
Read more >
Jupyter lab extensions not working · Issue #8122
Description I installed jupyter lab extensions, which are enabled, but do not work. They appear in the extension manager, but still then ...
Read more >
Notebook_login() not working in JupyterLab - Beginners
When I use notebook_login() in Google Colab, I am able to login fine. However, when I try to run notebook_login() from JupyterLab, ...
Read more >
Troubleshooting in Python
How to troubleshoot import and rendering problems in Plotly with Python. ... that these extensions are meant to work with JupyterLab 1 or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found