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.

Widgets dont display in jupyter lab

See original GitHub issue

Sorry if this post is a duplicate of something, I tried to search pretty thoroughly but there are a lot of open and closed issues.

We are running jupyterlab through jupyterhub, and can’t get widgets to display. Two different users have the same display issue, but get different errors.

The code run by both is as a test is

import ipywidgets as widgets
widgets.IntSlider()

One user (me) gets no output from the cells, but gets the following in the browser console:

Uncaught (in promise) Error: Object 'ipython.widget' not found in registry
    at default.js:1443
    at new Promise (<anonymous>)
    at Object.k [as loadObject] (default.js:1422)
    at e._handleCommOpen (default.js:913)
    at WebSocket._onWSMessage (default.js:136)

The other user gets the output below the cell of

javascript output is disabled in jupyterlab

to install the extension, the following was run

jupyter labextension install @jupyter-widgets/jupyterlab-manager

python version 3.6.4, jupyterhub 0.8, jupyterlab was installed yesterday, not sure on the version number but its the newest.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
billgreenwaldcommented, Feb 23, 2018

Apparently we installed 4.1.0. Is there an argument I can pass to jupyter labextension install to get npm to find the newest version when we run the command

jupyter labextension install @jupyter-widgets/jupyterlab-manager
0reactions
billgreenwaldcommented, Feb 23, 2018

Got it. Updating my personal kernel’s ipywidgets did the trick, thanks! I’ll close the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Widget not displaying in Jupyter Lab (not Anaconda) #2065
I have installed Jupyter Lab and Jupyter Notebook independently, NOT using Anaconda, and ipywidgets does not work in the Lab, but it does...
Read more >
How to get ipywidgets working in Jupyter Lab? - Stack Overflow
Switch to new kernel, now jupyterlab recognized ipywidgets as installed, but widgets are not working (only displays text widget description), ...
Read more >
Jupyter notebook widgets not displaying - Jetson Nano
I have a Nano with a fresh Jetpack 4.5.1 on and Docker container l4t-ml:r32.5.0-py3. When i use widgets like: import ipywidgets as widgets...
Read more >
Widget not rendering on JupyterLab examples
Widget not rendering on JupyterLab when running main.py on examples/app and examples/notebook. Go to root folder after cloning GitHub - jupyterlab/jupyterlab:  ...
Read more >
Issue with stackview inside JupyterLab - "Error displaying widget
I installed stackview from cmd and restarting everything did not help. The code itself is rather short: from skimage.io import imread import ...
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