HELLO WORLD--一起加油(🍺)!|

kingwzun

园龄:3年6个月粉丝:111关注:0

解决jupyter训练tqdm进度条显示不正常 和 IProgress not found.

jupyter训练tqdm进度条显示不正常

from tqdm import tqdm改为:

from tqdm.notebook import tqdm

解决报错 IProgress not found. Please update jupyter and ipywidgets.

  1. 错误分析:

根据报错内容提示,然后查看官方文档( https://ipywidgets.readthedocs.io/en/stable/user_install.html ) 发现,报错是因为jupyter和运行代码核心不在一个环境。

  1. 解决方法

首先,在base环境下安装widgetsnbextension:

conda activate base
conda install -c conda-forge widgetsnbextension

然后,在运行 jupyter 文件的那个环境XXXX下安装ipywidgets:

conda activate XXXX
conda install -c conda-forge ipywidgets

最后,重新启动 jupyter,即刻

本文作者:kingwzun

本文链接:https://www.cnblogs.com/kingwz/p/18736366

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   kingwzun  阅读(15)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起