use*_*710 9 python jupyter-notebook tqdm
我正在尝试在我的Python代码中使用tqdm_notebook,但是我遇到了这个错误
import tqdm
for i in tqdm.tqdm_notebook(range(2, int(total_number)//20):i
Run Code Online (Sandbox Code Playgroud)
错误:
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
Run Code Online (Sandbox Code Playgroud)
我正在使用Python 3.7.1和tqdm版本(4.28.1)
Mar*_*ark 13
对于那些不使用 conda 的人:
pip3 install ipywidgets --user
小智 12
这对我有用。
conda install -c conda-forge ipywidgets
jupyter nbextension enable --py widgetsnbextension
Run Code Online (Sandbox Code Playgroud)
之后重新启动jupyter笔记本即可。
最初来自这里的解决方案:https : //github.com/tqdm/tqdm/issues/187
giv*_*rld 11
这对我来说效果很好:
conda install ipywidgets==7.4.2
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7169 次 |
| 最近记录: |