ipywidgets: ipywidgets not showing GUI

Hi, I still got the issue after I ran jupyter labextension install @jupyter-widgets/jupyterlab-manager.

Initially, I came across some problems using tqdm_notebook in jupyterlab. After googling the problems, someone say it may be something wrong with ipywidgets. They basically suggest that running jupyter labextension install @jupyter-widgets/jupyterlab-manager. So I did, but it doesn’t work either for tqdm_notebook or ipywidgets. The following pic may present my problems.

image

image

image

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 22 (8 by maintainers)

Most upvoted comments

Hi, I have been through this problem every time I reinstall my virtual ubuntu which is managed by my IT colleagues.

After a few research according to my limited knowledge in this area, I figured out the following command lines that may helps likely, though I don’t really understand some of the tools. I don’t know if this helps, any guidance to improve these command (such as remove unnecessary lines) are appreciate.

Relative version info: image

## Initial Updates
cd ~
apt-get update -y && apt-get upgrade -y
pip install --upgrade pip

## Jupyter labextension
apt-get -y install npm nodejs
apt remove cmdtest
apt remove yarn
npm install -g npm yarn
pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter lab build

Remember to refresh your page in the browser. Wish this helps.

I’m also getting this error in Amazon Sagemaker. Here’s what the console looks like:

default.js:1432 Uncaught (in promise) Error: Object 'jupyter.widget' not found in registry
    at default.js:1432
    at new Promise (<anonymous>)
    at Object.C [as loadObject] (default.js:1411)
    at e._handleCommOpen (default.js:920)
    at WebSocket._onWSMessage (default.js:136)```