HyperAIHyperAI

Working Directory of Compute Containers

Each time a "Job" starts running, its runtime environment binds to the directory /openbayes/home, which serves as the container's "Working Directory". The contents of this directory will be saved after the "Job" is closed and can be viewed through the "Working Directory" tab on the page.

Display of Key Files

Key files from a "Job" will be displayed on the container's page. If a container has multiple "Jobs", the files from the most recent "Job" will be displayed.

Display Default README.md

After the container is closed, it will automatically search for the /openbayes/home/README.md file and display its contents on the container's page. This file must follow markdown syntax.

Display Default Jupyter Files

Similar to the logic for displaying README.md, after the container is closed, it will automatically search for .ipynb files in the /openbayes/home directory and display their contents on the container's page.

:::info When the container is closed, the system will search for files in the /openbayes/home root directory in the order of "index.ipynb", "main.ipynb", "default.ipynb". The first file found in this order will be displayed on the container's page. If none of these files are found, a random .ipynb file from the root directory will be selected for display. :::

Viewing "Working Directory" Contents

To view the results of a "Job", there are two methods:

  1. For a "Jupyter Workspace" that is still running, you can view or download directly in the editor, or view in the "Working Directory" tab on the "Container Page". However, the contents of the "Working Directory" tab are periodically synchronized from the running "Job", so the file contents in the "Working Directory" tab of a running "Job" may not be the most recent data.
  2. For "Python Scripts", you can only view in the "Working Directory" tab. If the "Job" is still running, note that the contents may not be the most recent data.

File Preview

Some file types in the container's "Working Directory" support preview, including .txt .py .ipynb .csv .md and various image types.

Jupyter file preview:

Python file preview:

Download Files

After a "Job" is closed, the data in the "Working Directory" tab represents the final data contents from the /openbayes/home directory. Like the "Data Repository", you can browse, preview, and download through the page. As shown below, clicking "Download Current File" will download the entire "Working Directory" folder. You can also download individual files by clicking the button on the right side of the file.

Create Working Directory as Data Repository Version

Currently, containers support creating the "Working Directory" or a folder within it as a new version of a data repository. This allows you to separately manage models or cleaned data generated in the "Working Directory" for future use.

Bind Working Directory as Data

The working directory of a closed "Job" can be bound to a new "Job":