IProgress not found. Please update jupyter and ipywidgets

avatar
Borislav Hadzhiev

Last updated: Apr 11, 2024
2 min

banner

# IProgress not found. Please update jupyter and ipywidgets

The error "IProgress not found. Please update jupyter and ipywidgets" occurs when the jupyter and ipywidgets are not installed or are outdated.

The error also occurs when using the tqdm module but the solution is the same.

To resolve the issue, open your terminal and run the following commands:

  1. Install the latest version of the jupyter package.
shell
pip install jupyter --upgrade # Or with pip3 pip3 install jupyter --upgrade

install and upgrade jupyter

If you use conda, use the following command instead.

shell
conda install -c anaconda jupyter conda update jupyter
  1. Install the latest versions of ipywidgets and widgetsnbextension.
shell
pip install ipywidgets widgetsnbextension --upgrade # Or with pip3 pip3 install ipywidgets widgetsnbextension --upgrade

install and upgrade ipywidgets and widgetsbnextension

If you use conda, use the following commands instead.

shell
conda install -c anaconda ipywidgets conda update ipywidgets conda install -c conda-forge widgetsnbextension conda update widgetsnbextension
  1. Enable the extension by running the following command.
shell
jupyter nbextension enable --py widgetsnbextension

enable extension in terminal

You should see the following output printed to your terminal.

shell
Enabling notebook extension jupyter-js-widgets/extension... - Validating: OK

Alternatively, you can enable the extension by running the following command in a notebook cell.

shell
!jupyter nbextension enable --py widgetsnbextension

enable extension in notebook

If the issue persists, try to restart the kernel.

  1. Click on Kernel in the top menu.
  2. Then click on Restart and confirm when prompted.

If the error persists, start Jupyter Notebook:

shell
jupyter-notebook

Run the following commands in a cell.

shell
%pip install --upgrade jupyter ipywidgets widgetsbnextension %jupyter nbextension enable --py widgetsnbextension

update jupyter ipywidgets and widgetsbnextension

If you still get the error, run the command with the --ignore-installed flag.

shell
%pip install --ignore-installed jupyter ipywidgets widgetsbnextension %jupyter nbextension enable --py widgetsnbextension

If the issue persists, try to upgrade the jupyter_client package.

shell
pip install --upgrade jupyter_client # Or with pip3 pip3 install --upgrade jupyter_client # Or in a cell %pip install --upgrade jupyter_client

upgrade jupyter client package

Try to restart the kernel if the issue persists.

  1. Click on Kernel in the top menu.
  2. Then click on Restart and confirm when prompted.

# Make sure the packages are installed in the environment used in the Notebook

If the error persists, make sure the packages are installed in the environment that is used by the notebook.

If you need to select the correct environment:

  1. Click on Kernel in the top menu.
  2. Hover over Change kernel and select the correct environment.

select correct environment

Installing and updating the packages has no effect if your Notebook is set to use an incorrect environment.

Once you switch to the correct environment, rerun the installation commands from the previous subheading.

If the issue persists, try to restart the kernel.

  1. Click on Kernel in the top menu.
  2. Then click on Restart and confirm when prompted.

# Additional Resources

You can learn more about the related topics by checking out the following tutorials:

I wrote a book in which I share everything I know about how to become a better, more efficient programmer.
book cover
You can use the search field on my Home Page to filter through all of my articles.