解决jupyter训练tqdm进度条显示不正常 和 IProgress not found.
jupyter训练tqdm进度条显示不正常
将from tqdm import tqdm
改为:
from tqdm.notebook import tqdm
解决报错 IProgress not found. Please update jupyter and ipywidgets.
- 错误分析:
根据报错内容提示,然后查看官方文档( https://ipywidgets.readthedocs.io/en/stable/user_install.html ) 发现,报错是因为jupyter和运行代码核心不在一个环境。
- 解决方法
首先,在base环境下安装widgetsnbextension:
conda activate base
conda install -c conda-forge widgetsnbextension
然后,在运行 jupyter 文件的那个环境XXXX下安装ipywidgets:
conda activate XXXX
conda install -c conda-forge ipywidgets
最后,重新启动 jupyter,即刻