93

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)

4 Answers 4

119

This worked for me.

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

Restarting jupyter notebook afterwards worked.

Solution originally from here.

6
  • 5
    Make sure these are installed in the environment the notebook is using! I was running jupyter notebook from the base environment and selecting a different conda environment in the notebook. This didn't work. Sep 23, 2019 at 23:12
  • Installing this kills Jupyter Lab for me. Cells don't run and it disconnects from the kernel.
    – Denziloe
    Dec 5, 2020 at 4:29
  • 1
    Update: I think that was a problem with the current version, ipywidgets 7.5.1. conda install ipywidgets==7.4.2 fixed it.
    – Denziloe
    Dec 5, 2020 at 4:50
  • 3
    In my case just running conda install ipywidgets was enough, there was no need for jupyter nbextension enable --py widgetsnbextension
    – Redoman
    Feb 25, 2022 at 2:08
  • @JfredoJ , your solution worked out for me. However, the fact is that you should install ipywidgets to the environment in which your kernel runs; not to the one in which your jupyter runs. Apr 14, 2022 at 18:16
55

For those not using conda:

pip3 install ipywidgets --user

1
  • 20
    Also, don't forget to restart Jupyter Notebook's kernel after the installation. Feb 11, 2021 at 18:19
10

This works fine for me:

conda install ipywidgets==7.4.2
2
  • 2
    Alternatively, pip install ipywidgets==7.4.2
    – knosmos
    May 20, 2021 at 14:35
  • failed to install with Python 3.9. Conflicts found. Installed ipywidgets 7.7.0, the problem still exists.
    – Raptor
    May 3, 2022 at 4:20
6

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.