jupyter lab安装、配置教程

一、下载、安装

本人从docker中新拉取的miniconda镜像,从0开始安装。

source activate XXXXXXX
pip install jupyterlab

二、配置.

jupyter lab --generate-config

生成默认配置文件config,我的在/root/.jupyter/jupyter_lab_config.py下,打开,添加:

c.ServerApp.ip = '*'
c.ServerApp.port = 8888 # 默认端口8000
c.ServerApp.open_browser = False
c.ServerApp.root_dir = '/data' # 可自己设
c.ServerApp.iopub_data_rate_limit = 10000000000000000000
c.ServerApp.iopub_msg_rate_limit = 10000000000


# 稍后添加密码,不需要密码可以不设
c.ServerApp.password_required = True
c.ServerApp.password = 'xxxxxxx' # 需要生成密码

生成的密钥同jupyter notebook,此处略,可看:

docker容器安装jupyter notebook(安装、配置、修改全过程)

设置中文:

pip install jupyterlab-language-pack-zh-CN

 更换主题:

输入theme,或者推荐几个

 

三、jupyter lab启动

jupyter lab --allow-root

猜你喜欢

转载自blog.csdn.net/buluxianfeng/article/details/126149522