All Collections
Getting Started
What is a compute capsule?
What is a compute capsule?

Code + (optional) data + computational environment = the minimum required for computational reproducibility.

Shahar Zaks avatar
Written by Shahar Zaks
Updated over a week ago

A compute capsule is the key to enabling guaranteed computational reproducibility on Code Ocean.

To upload code to Code Ocean, a compute capsule needs to be created to store not only the code, but everything else that the code needs in order to run, namely:

  1. Data

  2. A specification of the computational environment such as the specific versions of the operating system, packages, libraries, and other fundamentals that your code depends on.

At the core of the compute capsule is a Docker image and Dockerfile, which contains the necessary infrastructural layers built-in, and a set of constraints enforced to facilitate computational reproducibility.

For details on accessing this Dockerfile, see Exporting capsules and reproducing results on your local machine.

Did this answer your question?