Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tqdm 4.28.1 in Jupyter Notebook "IntProgress not found. Please update jupyter and ipywidgets."

I am trying to use tqdm_notebook in my Python code, but I am running into this error

import tqdm  for i in tqdm.tqdm_notebook(range(2, int(total_number)//20):i 

ERROR:

IntProgress not found. Please update jupyter and ipywidgets. ImportError: IntProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html 

I am using Python 3.7.1 and tqdm version (4.28.1)

like image 220
user3759710 Avatar asked Nov 11 '18 10:11

user3759710


People also ask

How do I update my Jupyter notebook to the newest version?

Use pip install notebook --upgrade or conda upgrade notebook to upgrade to the latest release. We strongly recommend that you upgrade to version 9+ of pip before upgrading notebook . Use pip install pip --upgrade to upgrade pip.

What is TQDM in Jupyter notebook?

Apart from the progress bar, tqdm gives additional information such as the number of iterations completed out of the total number of iterations, Total Elapsed Time, Estimated Time to Complete the whole loop, and the speed of the loop in iterations per second (or it/s).

Why is Jupyter lab not working?

Jupyter doesn't load or doesn't work in the browser Try disabling any browser extensions and/or any Jupyter extensions you have installed. Some internet security software can interfere with Jupyter.


2 Answers

This worked for me.

conda install -c conda-forge ipywidgets jupyter nbextension enable --py widgetsnbextension 

Restarting jupyter notebook afterwards worked.

Solution originally from here.

like image 89
yueyanw Avatar answered Sep 21 '22 16:09

yueyanw


For those not using conda:

pip3 install ipywidgets --user

like image 43
Mark Avatar answered Sep 23 '22 16:09

Mark