关键插件
https://github.com/krassowski/jupyterlab-lsp
# pip install 'jupyterlab>=3.0.0,<4.0.0a0' jupyterlab-lsp -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install 'jupyterlab>=3.0.0,<4.0.0a0' -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install 'python-lsp-server[python]' -i https://pypi.tuna.tsinghua.edu.cn/simple
# 开启jupyterlab ,settings 设置completion 的 Continuous hinting=true
jupyter server --generate-config
# 密码123456
jupyter server password
jupyter lab --allow-root --ip 0.0.0.0
jupyterlab添加虚拟环境
https://blog.csdn.net/junjunzai123/article/details/116137662
在命令行中切换到虚拟环境,然后执行
pip install ipykernel -i https://pypi.tuna.tsinghua.edu.cn/simple
python -m ipykernel install --name ocr1 --display-name ocr1
python -m ipykernel install --name ocr1 --display-name ocr1
jupyter kernelspec remove env_name(要删除的虚拟环境的名字)
pip install virtualenv
virtualenv jupyter