问题
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)
回答1:
This worked for me.
conda install -c conda-forge ipywidgets
jupyter nbextension enable --py widgetsnbextension
Restarting jupyter notebook afterwards worked.
Solution originally from here: https://github.com/tqdm/tqdm/issues/187
回答2:
For those not using conda:
pip3 install ipywidgets --user
回答3:
ah my bad ! Just had to install the packages jupyter and ipywidgets!
来源:https://stackoverflow.com/questions/53247985/tqdm-4-28-1-in-jupyter-notebook-intprogress-not-found-please-update-jupyter-an