首页 > 其他分享 >jupyter lab 的三个小问题

jupyter lab 的三个小问题

时间:2024-07-16 09:30:26浏览次数:9  
标签:Kernel jupyter proxychains4 lab 三个 install ipywidgets

运行程序时报错:

/home/llama/miniconda3/envs/torch/lib/python3.12/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html

from .autonotebook import tqdm as notebook_tqdm

这个错误提示的很清楚:要更新 jupyter 和 ipywidgets 包

pip install --upgrade jupyter ipywidgets

解决问题。

如何给jupyter 添加代理

由于有时需要 jupyter lab 即时下载一些模块,需要用到代理。
可用 proxychains4 ,但是由于 jupyter 和 proxychains4 同时用到 localhost 这个地址,故需要在 proxychains4 的配置文件修改一下:

/etc/proxychains4.conf

# 屏蔽一些本地回环地址,这样就不会出现循环了。
localnet 127.0.0.0/255.0.0.0

重启 jupyter lab

You can install it with pip:

`pip install timm`. Please note that you may need to restart your runtime after installation.

安装软件包后,需要重启 jupyter runtime,方法如下:

菜单的 Kernel -> restart Kernel

或者:

Click the "Kernel" menu in the top toolbar.
Select "Restart Kernel" from the menu.

标签:Kernel,jupyter,proxychains4,lab,三个,install,ipywidgets
From: https://www.cnblogs.com/litifeng/p/18304518

相关文章