JupyterLab Extensions
- JupyterLab extensions require Node.js
conda install nodejs
- Update JupyterLab extensions
jupyter labextension update --all
- List of JupyterLab Extensions
jupyter labextension list
ipywidgets
conda install ipywidgets
jupyter labextension install @jupyter-widgets/jupyterlab-manager
- How to get ipywidgets working in Jupyter Lab?
JupyterLab now prefers a model where arbitrary javascript is no longer allowed to be embedded in a cell’s output, which is how many interactive Jupyter Notebook modules used to work. They now ask that modules with interactivity create a JupyterLab extension. IPyWidgets has an extension that can be activated by running this on your command line (which assumes you already have NodeJS installed):
jupyter labextension install @jupyter-widgets/jupyterlab-manager
-
Version compatibility of jupyterlab-manager
- For JupyterLab 0.31.x,
jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.34
- For JupyterLab 0.32.x,
jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.35
- For JupyterLab 0.33.x,
jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.36
- For JupyterLab 0.34.x,
jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.37
- For JupyterLab 0.31.x,
- Links
JupyterLab LaTeX
pip install jupyterlab-latex
jupyter labextension install @jupyterlab/latex
-
An extension for JupyterLab which allows for live-editing of LaTeX documents.
-
Links
ipympl
pip install ipympl
jupyter labextension install jupyter-matplotlib
- Matplotlib Jupyter Extension. To enable the jupyter-matplotlib backend, simply use:
%matplotlib widget # or %matplotlib ipympl
import matplotlib as mpl
print(mpl.get_backend())
# returns module://ipympl.backend_nbagg
import matplotlib.pyplot as plt
#plt.ion() # turn on interactive mode (default)
plt.ioff() # turn off interactive mode
fig, ax = plt.subplots(figsize=plt.figaspect(1))
fig, axes = plt.subplots(ncols=2, figsize=plt.figaspect(0.5) * 0.5)
- Links