Install packages at runtime
If some packages are missing in your environment, you can install them dynamically. This is achieved by executing !mamba or !pip commands in the Notebook or terminal.
!mamba install pandas
or
!pip install bqplot
The following features are supported:
- Conda package installation from channels like
conda-forgeoremscripten-forge(with!mamba) - pure Python packages from
PyPi(with!pip) - package installs are persistent between sessions.
tip
Notebook.link supports loading labextensions dynamically! For example, try
!mamba install ipyleaflet
from ipyleaflet import Map
Map()
It is also possible to reset the environment to its initial state, using the project panel (from the cloud icon of the left sidebar). For more details see Storage in Project panel.