本文介绍了Jupyter Notebook中的Tqdm 4.28.1“未找到IntProgress".请更新jupyter和ipywidgets.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在我的Python代码中使用tqdm_notebook,但是我遇到了这个错误
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
错误:
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
我正在使用Python 3.7.1和tqdm版本(4.28.1)
I am using Python 3.7.1 and tqdm version (4.28.1)
推荐答案
这对我有用.
conda install -c conda-forge ipywidgets
jupyter nbextension enable --py widgetsnbextension
此后重新启动jupyter笔记本即可.
Restarting jupyter notebook afterwards worked.
最初来自这里的解决方案: https://github.com/tqdm/tqdm/issues/187
Solution originally from here: https://github.com/tqdm/tqdm/issues/187
这篇关于Jupyter Notebook中的Tqdm 4.28.1“未找到IntProgress".请更新jupyter和ipywidgets.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!