👩‍💻Get Started with a Workspace

Ontologic Workspaces are managed virtual workstations in the cloud. Workspaces allow you to develop, install, and run analyses on a version controlled machine, and adjust compute power as needed.


1. Create a new Workspace

In your project, navigate to the Workspaces tab on the left.

Workspaces page

Click the Create Workspace button in the top right. A dialog will open where you can name your Workspace and choose a base image.

This base image will determine what environment is available in this Workspace. The most popular options are Ubuntu and Conda (which includes Python3 by default). Choosing Biomni will give you default access to Stanford's biomedical AI agent.

Create new Workspace dialog

Once you've provided a name and chosen a base image, click Create. A new Workspace with your chosen name will appear on the Workspaces page.

1.5 (Optional) Configure hardware requirements

By default, Workspaces are configured with 2 CPU cores and 8 GB of memory. If you require additional resources, you can edit a Workspace's requirements before starting the Workspace.

To edit Workspace hardware requirements, click on the Gear Icon to the right of your Workspace's Start button.

Edit Workspace configuration button

This will open the Edit Workspace dialog.

Edit Workspace dialog

Here, you can update your Workspace requirements and see how much it will cost while running. Once you have made your changes, click Save to apply them to the Workspace.


2. Interact with a Workspace

Start the Workspace

To start a Workspace, click the Start button to the right of the Workspace name. This will request whatever hardware requirements you have set for the Workspace and begin loading the Workspace.

Starting a Workspace normally takes fewer than 30 seconds, but can take up to a few minutes, depending on resource availability. The first time opening a Workspace may take longer as it needs to download the base image first.

New Workspace Start button

Once the Workspace is started, the status will change to "Running" and an Open button will appear.

Workspace in Running status

Open the Workspace

After your Workspace has started, click on the Open button. This will open an embedded VSCode editor in your browser.

VSCode is a popular development environment. It provides plugins to support the development and use of software in a variety of languages, and extensions can be installed to support Python, R, Java, and many other languages.

To learn more, check out VSCode's official documentation.

Embedded VSCode window

By default, a Workspace is opened to your user's home directory.

If you are already familiar with VSCode or other development environments, you can use this embedded version essentially the same way you would use it from your desktop!

Interact with project files

In the explorer tab on the left hand side of VSCode, there is a special folder named Files. This folder provides access to all files you've uploaded to or generated within the current project - excepting files stored in the projectData directory. Files stored in the projectData directory will remain in your Workspace.

As you use your Workspace, you can save files to this folder and they will be automatically synchronized with your project files in the Ontologic platform. These can be found in the Files tab of the Ontologic navigation bar, as well as in your VSCode Files directory.

Mounted project files

Install software and dependencies

VSCode provides access to the Workspace's terminal by pressing Ctrl + ~. In the terminal that appears, you can install dependencies and packages as you would on your local workstation.


3. Pause a Workspace and Save your Work

Stop the Workspace

From your Workspace, click on the highlighted Workspaces tab on the left navigation bar. This will bring you back to the Workspaces dashboard.

Here, find the Workspace you were running, and click the Stop button.

Workspaces list with running Workspace

This will open a popup asking whether you would like to save your changes.

Workspace save prompt to Snapshot your Workspace

If you would like to discard your changes since you last saved, click Discard to stop the Workspace and discard your changes.

If you would like to save your changes, click Save and your changes will be saved.

Saving a Workspace creates a Workspace Snapshot, which is a complete picture of everything in your Workspace at the time it was saved. These are retained in our system, so while you cannot retrieve unsaved data, you can restore a previous Workspace version.

The state of the Workspace will change to STOP_REQUESTED. In the background, Ontologic is gathering all of your changes and bundling them into a Workspace Snapshot.

A stopping Workspace

4. Use Workspaces throughout Ontologic

Call your Workspace Code as a reusable Ontologic Tool

If you want to convert the code that you've developed in your Workspace into an Ontologic Tool that can be shared and run from a simple, low-code user interface, please head on over to the tutorial for how to create an Ontologic Tool.

Restore or Duplicate a Workspace

Each time a Workspace is saved, it creates a immutable version that you can always go back to. To revert a Workspace to a previous version, click on the three vertical dot icon next to your Workspace's Start button, then select Restore Version.

Workspace three dots menu

This will bring up a dialog that allows you to select any previous Snapshot of this Workspace, sorted by the time at which it was saved. Once you've selected the version you'd like to restore, click Save. The next time the Workspace is launched, it will start with this version.

Restore Workspace version dialog

Duplicate a Workspace

If you would like to base a new Workspace on an existing one, you can do that from the same menu as above.

To duplicate a Workspace, click on the three vertical dot icon next to your Workspace's Start button. Then click on Duplicate.

Workspace three dots menu

This will bring up a dialog that allows you to name the new copy of the selected Workspace.

Duplicate Workspace dialog

Once you click Duplicate, a new Workspace will be created using the same snapshot and hardware requirements as the current version of the original Workspace.


Next Steps

Congratulations! You should now be familiar with:

How to create a new Workspace and update its hardware requirements

How to start a Workspace running and open VSCode

How to edit and save your project files inside a Workspace

How to stop a Workspace and save your work

How to restore a previous version or duplicate a Workspace

If you want to continue following our startup guide, please head on over to the tutorial on how to set up the Boltz-2 protein-folding model in a Workspace next! 👇

Last updated