Contents

Jupyter常用配置

安装

创建虚拟环境

python -m venv xxx

使用pip安装

pip install jupyterlab

配置

jupyter各种配置会比较多,除了常用的远程连接,还有各种插件等的安装与配置。 生成配置文件

jupyter lab --generate-config
  1. 生成密码
jupyter lab password

允许外部连接

# $HOME/.jupyter/jupyter_lab_config.py

c.ServerApp.ip = '*'

默认不自动打开浏览器

# $HOME/.jupyter/jupyter_lab_config.py
c.ServerApp.open_browser = False

代码提示

首先在系统中安装nodejs

sudo emerge -va net-libs/nodejs
(pydev) pip install 'python-language-server[all]'
(pydev) pip install "python-lsp-server[all]"
(pydev) pip install jupyterlab-lsp