Jupyter Lab中的插件
准备工作
安装插件前,首先安装nodejs
,可通过以下语句进行安装:
conda install -c conda-forge nodejs
安装插件
可以通过以下语句,安装多个插件:
jupyter labextension install my-extension my-other-extension
安装指定版本的插件:
jupyter labextension install my-extension@1.2.3
卸载插件
jupyter labextension uninstall my-extension my-other-extension
jupyter lab build
查看已装插件
jupyter labextension list
常用插件介绍
jupyterlab-toc
jupyter labextension install @jupyterlab/toc
jupyterlab-spreadsheet
jupyter labextension install jupyterlab-spreadsheet
jupyterlab-variableInspector
jupyter labextension install @lckr/jupyterlab_variableinspector
jupyter-matplotlib
pip install ipympl
jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-matplotlib
jupyter lab build
jupyterlab-plotly
jupyter labextension install jupyterlab-plotly
jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget
jupyter_bokeh
conda install -c bokeh jupyter_bokeh
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install @bokeh/jupyter_bokeh
debugger
conda create -n jupyterlab-debugger -c conda-forge xeus-python=0.8.0 notebook=6 jupyterlab=2 ptvsd nodejs
conda activate jupyterlab-debugger
jupyter labextension install @jupyterlab/debugger
jupyterlab_html
jupyter labextension install @mflevine/jupyterlab_html
jupyterlab-sql
pip install jupyterlab_sql
jupyter serverextension enable jupyterlab_sql --py --sys-prefix
jupyter lab build
jupyterlab-system-monitor
要求
- JupyterLab 1.0+
- Node.js
JupyterLab 3.x
pip install jupyterlab-system-monitor
JupyterLab 2.x
安装nbresuse
pip install nbresuse
# 或者
conda install -c conda-forge nbresuse
jupyter labextension install jupyterlab-topbar-extension jupyterlab-system-monitor
jupyter-renderers
- fasta-extension:
jupyter labextension install @jupyterlab/fasta-extension
- geojson-extension:
jupyter labextension install @jupyterlab/geojson-extension
- katex-extension:
jupyter labextension install @jupyterlab/katex-extension
- mathjax3-extension:
jupyter labextension install @jupyterlab/mathjax3-extension
- vega2-extension:
jupyter labextension install @jupyterlab/vega2-extension
- vega3-extension:
jupyter labextension install @jupyterlab/vega3-extension