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

狂风中的少年 提交于 2020-06-27 06:46:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!