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.

ipywidgets stuck at "Loading widget..." in JupyterLab

See original GitHub issue

I’ve been dealing with this problem the past few days. I’ve scoured past issues and tried all of the different solutions, but none of them have worked for me. I’m running JupyterLab on a remote server running Ubuntu Server 18.04 which I connect to through local port forwarding using Chrome.

import ipywidgets as widgets
widgets.IntSlider()

Results in “Loading widget…” without actually displaying the widget.

image

When I inspect the chrome console I see a number of errors like this.

image

I’ve tried using my default pip environment and an anaconda environment. Both have resulted in the same thing. When I run the code as an ipynb in standard Jupyter, I am able to see the widget. Any advice here?

Relevant info: Remote Server: Ubuntu Server 18.04 Local: Windows 10 using Chrome jupyter core: 4.6.1 jupyter notebook: 6.0.2 jupyter lab: 1.2.3 ipywidgets: 7.5.1 nodejs: 8.10.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:25 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
flobreccommented, Apr 21, 2020

Just to confirm I have the same issue, not working in jupyter lab but working in notebook

2reactions
jasongroutcommented, Jan 28, 2020

Within my browser, open a Python3 console and run

Ah, that’s the issue. The console doesn’t support widgets, just the notebook.

Read more comments on GitHub >

github_iconTop Results From Across the Web

why "Loading widget." message appears in JupyterLab?
To be honest, I've still not quite got to grips with JupyterLab's extension loading system - it doesn't work well for me either....
Read more >
Installation — Jupyter Widgets 7.6.2 documentation
Install the widgetsnbextension package in the environment containing the Jupyter Notebook server. Install ipywidgets in each kernel's environment that will use ...
Read more >
IpyWidgets not displaying in Shared notebook - Kaggle
I am not looking for interactive widgets & charts in the shared notebook. I just want to know, is it possible to display...
Read more >
Error Displaying FigureWidget - Plotly Python
It looks like you're version of plotly (python) and plotlywidget (JupyterLab) are out of sync. Upgrade plotly.py to 3.1.0 (which corresponds to ...
Read more >
vispy/vispy - Gitter
and about the jupyterlab installation, the documentation mentions using vispy@latest ... the magic function %load_ext vispy it gets stuck on Loading Widget.
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