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,然后重启即可

相关推荐
m0_734949797 小时前
MySQL如何配置定时清理过期备份文件_find命令与保留周期策略
jvm·数据库·python
m0_514520577 小时前
MySQL索引优化后性能没提升_通过EXPLAIN查看索引命中率
jvm·数据库·python
H Journey8 小时前
Python 国内pip install 安装缓慢
python·pip·install 加速
Polar__Star9 小时前
如何在 AWS Lambda 中正确使用临时凭证生成 S3 预签名 URL
jvm·数据库·python
曹牧9 小时前
Eclipse:悬停提示(Hover)
java·ide·eclipse
m0_743623929 小时前
React 自定义 Hook 的命名规范与调用规则详解
jvm·数据库·python
FreakStudio9 小时前
无硬件学LVGL—定时器篇:基于Web模拟器+MicroPython速通GUI开发
python·单片机·嵌入式·大学生·面向对象·并行计算·电子diy·电子计算机
gCode Teacher 格码致知10 小时前
Python提高:pytest的简单案例-由Deepseek产生
python·pytest
不要秃头的小孩10 小时前
力扣刷题——509. 斐波那契数
python·算法·leetcode·动态规划
科雷软件测试10 小时前
使用python+Midscene.js AI驱动打造企业级WEB自动化解决方案
前端·javascript·python