一、环境
- jupyter-lab
- conda
二、配置步骤
- 进入
conda环境
conda activate mozi
- 安装
jupyter-lab
pip install jupyterlab
- 给环境安装
ipykernel
conda install -n mozi ipykernel
- 将环境写入
jupyterlab的kernel中
python -m ipykernel install --user --name <conda环境名称> --display-name “<在jupyterlab中的名称>”
python -m ipykernel install --user --name mozi --display-name mozi
- 将环境从
jupyterlab中删除
存放目录C:\Users\Administrator\AppData\Roaming\jupyter\kernels
jupyter kernelspec remove mozi
- 运行
jupyter-lab
jupyter-lab
- 在打开页中选择
python-mozi环境就可以使用conda环境了
选择界面
三、给jupyter-lab安装代码提示 kite
kite
- 下载安装
- 官方网站:https://www.kite.com
- 安装
kite所需要的包
conda install -c conda-forge nodejs
pip install jupyter-kite>=2.0.2
-
jupyter-lab安装扩展包
jupyter labextension install @kiteco/jupyterlab-kite
四、给jupyter-lab安装代码提示jupyter-lsp
- 安装
jupyter-lsp所需要的包
pip install jupyterlab-lsp
conda install -c conda-forge jupyterlab-lsp
pip install jupyter-lsp
conda install -c conda-forge nodejs
pip install python-language-server[all]
-
jupyter-lab安装扩展包
jupyter labextension install @krassowski/jupyterlab-lsp













网友评论