JupyterLab插件推荐及安装(conda环境下)
1、安装jupyterlab和插件必备的nodejs,中文包(可选)
conda install 'jupyterlab>=3.0.0,<4.0.0a0' node js
conda install -c conda-forge jupyterlab-language-pack-zh-CN(可选)
2、安装ipykernel并设置(为了在jupyterlab中可以切换内核)
conda install ipykernel
python -m ipykernel install --user --name learn --display-name "learn"
安装插件不建议从jupyterlab网页内的插件处安装,在那边安装会要求重构代码,但是我一直没法重构成功。建议在终端使用命令安装
3、插件lsp
一款代码补全等功能的强大插件
参考链接:https://github.com/jupyter-lsp/jupyterlab-lsp
conda install -c conda-forge jupyterlab-lsp
conda install -c conda-forge python-lsp-server r-languageserver
运行上面两条命令才可以实现lsp的全部功能
4、插件DrawIO
一款绘制图表工具,可绘制流程图
参考链接:https://github.com/QuantStack/jupyterlab-drawio
conda install -c conda-forge jupyterlab-drawio
5、execute-time
显示代码单元的运行时间
https://github.com/deshaw/jupyterlab-execute-time
conda install -c conda-forge jupyterlab_execute_time
6、系统监视器
显示系统信息(内存和 CPU 使用情况)
https://github.com/jtpio/jupyterlab-system-monitor
conda install -c conda-forge jupyterlab-system-monitor
7、variableinspector
变量监视器
https://github.com/lckr/jupyterlab-variableInspector
pip install lckr-jupyterlab-variableinspector
8、matplotlib
使图可以交互
https://github.com/matplotlib/ipympl#readme
conda install -c conda-forge ipympl
9、code-formatter
格式化美化代码
https://github.com/ryantam626/jupyterlab_code_formatter
pip install jupyterlab-code-formatter
conda install black isort