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

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

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 25 (11 by maintainers)

Most upvoted comments

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

Within my browser, open a Python3 console and run

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