Skip to main content

Install packages at runtime

When your environment lacks required packages, you can install them dynamically using either mamba or pip commands directly in a notebook cell or terminal.

Installation methods

Mamba installation

!mamba install pandas

Pip installation

!pip install bqplot

Supported features

The following features are supported:

  • Conda package installation from channels:
    • conda-forge
    • emscripten-forge (use !mamba command)
  • Pure Python packages from PyPI (use !pip command)
  • Persistent installations: Installed packages remain available between sessions
tip

Notebook.link supports dynamic loading of JupyterLab extensions! For example:

!mamba install ipyleaflet

from ipyleaflet import Map
Map(center=(52, 10), zoom=5)

Environment reset

To return to the original environment state:

  1. Open the Project Panel (cloud icon in the left sidebar)
  2. Select the reset option

For detailed instructions, refer to the Storage section in Project panel documentation.