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

PythonJupyter NotebookTqdm

Python Problem Overview


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)

Python Solutions


Solution 1 - Python

This worked for me.

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

Restarting jupyter notebook afterwards worked.

Solution originally from here.

Solution 2 - Python

For those not using conda:

pip3 install ipywidgets --user

Solution 3 - Python

This works fine for me:

conda install ipywidgets==7.4.2

Solution 4 - Python

ah my bad ! Just had to install the packages jupyter and ipywidgets!

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser3759710View Question on Stackoverflow
Solution 1 - PythonyueyanwView Answer on Stackoverflow
Solution 2 - PythonMarkView Answer on Stackoverflow
Solution 3 - PythonenigmaView Answer on Stackoverflow
Solution 4 - Pythonuser3759710View Answer on Stackoverflow