Code
Was this helpful?
Was this helpful?
The Code folder contains all the scripts used in the Capsule. You can add folders or files to the /code
folder by pressing the plus signs at the top of the File Navigator or by uploading them. Using the drop-down menu, you can drag and drop code files and folders from your local computer and upload them to the /code
folder.
For reproducibility purposes, files written to the /code
folder during a Reproducible Run are deleted once it’s completed.
A run
file (i.e., driver script) is the entry point into the Capsule during a Reproducible Run, and automates an end-to-end workflow.
Code Ocean supports multi-line editing. To create a multi-line cursor in the Editor Panel in a Capsule or in a Cloud Workstation, hold the Option button when clicking where to put the next cursor on a Mac, or press Ctrl+Alt during the mouse click on Windows. To return to a single cursor, press Escape.