The Structure of a Compute Capsule

The Interface of the Compute Capsule

The Code Ocean Computational Workbench is divided into three vertical sections from left to right, files, editor, and timeline.

The user interface of the compute capsule IDE (integrated development environment):

Files

The File tab on the toolbar to the left opens the Files panel. Under Core Files, metadata, environment, code, and folders are organized. Under Research Data Drive, is the scratch folder, and Under Results is the result folder, additional files are organized under Other Files.‌

Editor

The editor is the center panel where you can view and edit information that you select from the Files folders. Results files can be selected from the Reproducibility Panel on the right.‌

Timeline

The timeline is the Reproducibility panel on the right which provides a managed history of the Capsule and prompts commit changes and manage versions.

The Components of the Compute Capsule

When running in the Cloud workstation (CW), you will be able to access the whole file system. An extra folder (CW Root FS) is added to address the property of this folder system.

There are six essential research project components:

These appear in the Files panel as six folders. You can download and upload content to and from all the folders, except the results and scratch folder.

Follow the articles below to learn more details about the components:

Capsule Limitations, Structure, and Practices

Below are the details of the size limitation, the path of the folder in the system, design concepts, and the underline mechanism for each of the folders.

Size Limitation

The limitation of the capsule workspace is 5GB, this includes the files in Metadata, Environment, Code, and Data folder.

The capsule workspace is 5GB, but you have 10 GB when building the capsules environment using the environment UI and the postInstall script. We recommend installing all the packages you need during the building phase. Please check the Environment Guide for more information.

Path of the Folder and the Accessibility for the Computation

The scratch (RR) is not the same folder as scratch (CW). The scratch (RR) is emptied before the end of each run, the content will not be visible in the capsule IDE.

Design Concepts and Underline Mechanism (AWS Storage and Persistence)

The source and the size of the Data might vary depending on the project. As covered in the previous table, there are different ways of bringing data into the capsule in the Data folder. Given the complexity of the project, you may need a place to store the intermediate results and use them as input data for further analysis, the Scratch folder is used for this purpose.

Below is the shareability of each type of dataset and or recommended practice of implementing it in the capsule based on the design logic.

If your capsule size is more than 5 GB, it could affect the performance. Please make the data into a dataset and attach it to the capsule to reduce the overall size of the capsule. You can go to the Data Assets Guide for further guidance on creating and using a dataset.

Stop Computation from Capsule Dashboard

Note: A Cloud Workstation can be shut down, or put on hold from the capsule Dashboard.

Last updated