Jupyter Lab 3安装和使用(中文界面)
安装
pip安装
pip install jupyterlab==3
pip install jupyterlab-language-pack-zh-CN # 安装中文界面
conda安装
conda install -y -c conda-forge jupyterlab==3
pip install jupyterlab-language-pack-zh-CN # 使用pip安装中文界面
汉化(中文界面)
pip install jupyterlab-language-pack-zh-CN
在Jupyter Lab的网页中,点击:
Settings→Language→Chinese (simplified, china) (中文 (简体,中国))
如果找不到Language菜单,删除所有含有jupyter的包,重新安装。
删除命令:
for pkg in `pip freeze | grep jupyter | sed 's/ @.*//'`; do pip uninstall -y $pkg; done
安装命令:
pip install jupyterlab==3
pip install jupyterlab-language-pack-zh-CN
运行命令:
jupyter lab
中文界面如下:
扩展安装
TOC目录安装
方法一、Jupyter Lab网页界面上安装
点击:插件管理器→搜索输入框:TOC→搜索→在搜索结果:“@jupyterlab/toc-extension JupyterLab - Table of Contents widget extension”,点击:安装
方法二、命令行安装
jupyter labextension install @jupyterlab/toc
启动Jupyter Lab服务
jupyter lab
停止Jupyter Lab服务
使用control-c停止此服务器并关闭所有内核(两次跳过确认).
Jupyter子命令
trust - 信任ipynb文件
jupyter trust BackTrader.ipynb