【Jupyter Notebook】Error: IProgress not found. Please update jupyter and ipywidgets

Error: IProgress not found. Please update jupyter and ipywidgets

问题描述:在 base 环境下运行 jupyter notebook,用到名称为 pytorch 虚拟环境的内核,然后报错。

解决方案:根据提示👉官方链接

  1. base 环境下运行:
conda install -c conda-forge ipywidgets
conda install -n base -c conda-forge widgetsnbextension
conda install -n pytorch -c conda-forge ipywidgets
  1. 重启 jupyter notebook。

另:参考👉pip3 install ipykernel

添加内核的方法(pytorch这个虚拟环境为例):

  1. 安装 ipykernel
conda activate pytorch
pip install ipykernel
  1. 添加名称为 pytorch 内核
conda activate pytorch
python -m ipykernel install --name pytorch
  1. 查看 jupyter notebook 中的内核
jupyter kernelspec list
  1. 删除 jupyter notebook 中名称为 pytorch 的内核
jupyter kernelspec remove pytorch
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

社恐患者

赚钱不易呜呜呜

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值