jupyterlab安装
-
准备
- 搭建虚拟环境
python -m venv venv
- jupterlab安装
pip install jupterlab==4.0.9
-
配置
- 生成配置密钥
(venv) (base) [nlu_common@test-node-22 binger]$ ipythonPython 3.10.10 (main, Mar 21 2023, 18:45:11) [GCC 11.2.0]Type 'copyright', 'credits' or 'license' for more informationIPython 8.19.0 -- An enhanced Interactive Python. Type '?' for help.In [1]: from notebook.auth import passwdIn [2]: passwd()Enter password:Verify password:
输入密码(用于登录jupter notebook),将生成的加密后的密钥保存下来。
- 生成默认配置文件
jupyter lab --generate-config
- 修改配置文件
vim ~/.jupyter/jupyter_lab_config.py
c.ServerApp.ip = '*'
c.ServerApp.password = 'argon2:$argon2id$v=19$m=10240,t=10,p=8$RTeibHvXSu9VGh7dW+mCDw$clLTSQgm5p+9/CCWEHykSKGoDCKLikzsp2eRRkAXTnA'
c.ServerApp.open_browser = False
c.ServerApp.open_brower = False
c.ServerApp.port = 11111
c.ServerApp.allow_remote_access = True
c.ServerApp.notebook_dir = '/data/binger'
-
启动
- ip + 1111(端口)
- 使用设置的密码登录
-
其他
-
中文语言包支持:
pip install jupyterlab-language-pack-zh-CN
-
代码补全工具
pip install nodejs jupyter-lsp python-lsp-server[all]

浙公网安备 33010602011771号