Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Environments and packages

The packages and settings your code runs with, and how to add your own.

An environment is everything your code runs with: the language version, the Python or R packages, any Linux system packages, and environment variables. Each block runs in an environment, so every run has exactly the packages it needs.

What an environment contains

Part
Examples

Python or R packages

pandas, scikit-learn, PyTorch; or tidyverse, forecast

Linux packages

System libraries some packages need, such as GDAL for geospatial work

Environment variables

Settings your code reads at run time

From this definition, Zerve builds an image that your blocks run in. Zerve also adds a few packages it needs to run your code; these are hidden from your package list.

Languages

Language
Version

Python

Python 3.11, with packages installed using uv

R

R 4.5

Starting points

You don't have to start from scratch. Zerve includes presets for common kinds of work, such as machine learning, deep learning on GPUs, natural language processing and geospatial analysis. See Environment presets.

Adding packages

Add packages to the environment your notebook uses, and Zerve rebuilds it. You can also ask the agent to do it: in Evolve Mode, an environment setup specialist installs packages and waits for the build to finish. See Specialists.

When you add a package, you can specify a version, such as pandas==2.2.2 or pandas>=2.0, to make sure the environment is the same every time it's built.

Pin the versions of packages your results depend on. That way, rebuilding the environment later won't change your results.

Default environments

Each organization can set one default environment per language, used for new notebooks. Admins set these up from Executor Images. See Executor images.

Environments and compute

The environment decides what software a block has; its compute type decides what hardware it runs on. For GPU work you need both: GPU compute, and an environment with GPU-enabled libraries.

Self-hosted and air-gapped installs

When your organization runs Zerve in its own environment, environments can be built from your own package mirrors and container registries, so builds work without internet access. See Self-managed installs.

Last updated

Was this helpful?