Search code examples
pythonjupyter-notebookprogress-baripywidgetstqdm

VS Code Jupyter Notebook: IProgress not found


I'm attempting to run a very simple tqdm script:

from tqdm.notebook import tqdm
for i in tqdm(range(10)):
    time.sleep(1)

but am met with:

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

My ipywidgets is v8.0.4 and jupyter v1.0.0... does tqdm not work anymore with VS Code Jupyter Notebook?


Solution

  • I had the same problem. Using this post I resolved it by running:

    %pip install --upgrade jupyter ipywidgets
    %jupyter nbextension enable --py widgetsnbextension # removed !pip on the recommendation of a comment.
    
    import time
    from tqdm.notebook import tqdm
    for i in tqdm(range(10)):
        time.sleep(0.1)