jupyter汉化、修改默认路径详细讲解

1、配置镜像路径

修改第三方库的下载路径,比如:清华镜像pypi(https://mirrors.tuna.tsinghua.edu.cn/help/pypi/),配置镜像地址。

首先执行 pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

2、安装模块

安装jupyter notebook:

再执行:pip install jupyter

查看jupyter版本

卸载模块命令:pip uninstall XXX

启动jupyter:

执行:jupyter notebook
如何不能跳转到页面,就复制如下链接,去浏览器打开即可。

3、修改jupyter配置文件

修改jupyter notebook文件默认路径,首先执行 :`jupyter notebook --generate-config`

在C:\Users\Administrator.jupyter目录下用记事本打开jupyter_notebook_config.py文件,修改# c.ServerApp.notebook_dir = '',改到你所需要的路径下

4、汉化jupyter

  • 7.0以上版本 :执行:pip install jupyterlab-language-pack-zh-CN

然后重新进入notebook,进入home页面下的设置(setting),可以把语言改成中文

  • 7.0以下的版本:安装扩展:

pip install jupyter_contrib_nbextensions

jupyter contrib nbextension install --user

汉化: 在环境变量中添加------变量名:LANG,值:zh_CN.UTF8,然后重启即可

相关推荐
花酒锄作田16 小时前
Pydantic校验配置文件
python
hboot16 小时前
AI工程师第四课 - 深度学习入门
pytorch·python·神经网络
ZhengEnCi1 天前
P2M-Matplotlib折线图完全指南-从数据可视化到趋势分析的Python绘图利器
python·matlab·数据可视化
ZhengEnCi1 天前
P2L-Matplotlib饼图完全指南-从数据可视化到图表定制的Python绘图利器
python·matlab
曲幽1 天前
你的REST接口还在“过度投喂”数据吗?——FastAPI + GraphQL实战避坑指南
python·fastapi·web·graphql·route·cors·rest·strawberry
用户8358086187911 天前
基于 Self-RAG 与列表级重排序的进阶 RAG 系统设计与实现
python
Warson_L2 天前
Python `Annotated` 与 LangGraph Reducer 学习笔记
python
韩师傅2 天前
海天线算法的前世今生
python·计算机视觉
韩师傅2 天前
当你的甲方设备过烂,要如何快速出效果?
python·计算机视觉
Warson_L2 天前
LangGraph的MessageState and HumanMessage
python