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

user3759710 picture user3759710 · Nov 11, 2018 · Viewed 36.6k times · Source

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)

Answer

yueyanw picture yueyanw · Apr 7, 2019

This worked for me.

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

Restarting jupyter notebook afterwards worked.

Solution originally from here.