1、安装:通过conda安装。
- 新建虚拟环境:conda install -n jupyter python=3.10 #一开始用的3.11.8,各种不服,最终发现有个组件需要<3.11
- 进入虚拟环境:conda activate jupyter
- 安装:conda install jupyterlab
- 补全:根据运行时报错安装缺失的组件:conda install jupyter_server_fileid jupyter_server_ydoc nbclassic nodejs
- 配置:~/.jupyter/jupyter_lab_config.py:
- c.ServerApp.allow_origin = '*'
- c.ServerApp.ip = '0.0.0.0'
- c.ServerApp.root_dir = '/app1/samples'
- c.ServerApp.password_required = True
- c.ServerApp.password = '密码串' #密码串通过执行命令来生成:python3 -c "from jupyter_server.auth import passwd; print(passwd())"
2、运行:jupyter lab
标签:ServerApp,jupyter,笔记,server,conda,install,安装 From: https://www.cnblogs.com/badwood316/p/18106084