Skip to content

Installation

Requirements

StepUp Notebook is published on both PyPI and conda-forge, under the same package name stepup-notebook. Both also install StepUp Core as a dependency.

We recommend installing into an isolated environment, such as a Python virtual environment or a pixi workspace, and activating it with direnv.

Installing from PyPI

The dependencies of each notebook ecosystem are optional, so that you only install the ecosystems you use. Select them with an extra, e.g. jupyter for Jupyter notebooks, using one of the following commands:

pip install 'stepup-notebook[jupyter]'     # in an activated virtual environment
uv pip install 'stepup-notebook[jupyter]'  # same, with uv
uv add 'stepup-notebook[jupyter]'          # in a uv project

Without an extra, plan.py can still declare notebook steps, but they fail with a message naming the missing extra.

Installing from conda-forge

Use one of the following commands:

pixi add stepup-notebook                      # in a pixi workspace
conda install -c conda-forge stepup-notebook  # in an activated conda environment

Jupyter Kernel

The jupyter extra installs the packages needed to execute notebooks, including ipykernel, so neither JupyterLab nor a separate kernel installation is required.

Notebooks are always executed with the Python kernel (python3) of the environment in which StepUp Notebook is installed, regardless of the kernel named in the metadata of a notebook. Kernelspecs installed for Jupyter, including one named python3, are ignored. Install the packages that your notebooks import, such as NumPy or Matplotlib, in the same environment. Kernels for other languages, e.g. R or Julia, are not supported.

Pandoc

Converting a notebook to LaTeX or PDF requires Pandoc, because nbconvert uses it to translate the Markdown cells. Pandoc is not a Python package, so neither pip nor uv installs it. Install it with your system package manager, e.g. apt install pandoc or brew install pandoc, or from conda-forge. PDF output additionally requires XeLaTeX.

Security

StepUp Notebook requires recent versions of the Jupyter packages, e.g. nbconvert 7.17.1 or later, because older versions have known security issues. Keep them up to date when you update your environment.

Executing a notebook runs all of its code with your permissions, so only execute notebooks that you trust, as with any other script.

Windows

StepUp Notebook communicates with the Jupyter kernel through ZeroMQ. On Linux and macOS, it uses IPC sockets in a private temporary directory. On Windows, it uses TCP ports on 127.0.0.1, because the Windows wheels of pyzmq have no IPC transport, as observed with pyzmq 27.3. When many notebooks start at the same time, a kernel may then fail to start with “Address already in use”, because Jupyter selects free ports before the kernel binds them.