Workspaces and environments
This page explains what a workspace is and how to start and stop one. It also shows how to save the packages you installed as an environment version, how to send GPU training with that version, and how a workspace manager adds and removes members.

What a workspace is
Section titled “What a workspace is”A workspace is one development server (a container) that runs on the server. An admin creates it and sets its resources: the starting image, CPU, CPU memory, GPU mode and disk size. On a server that uses teams, each workspace belongs to one team (Teams and quotas).
Several people can share one workspace, and one person can belong to several workspaces. Each member works under their own Linux account and can use sudo. Files live in two places.
| Path | Use |
|---|---|
/qgon/home/<your user name> |
Your home folder |
/qgon/shared |
Shared folder that every member can read and write |
The qgon SDK (import qgon and the qgon command) is already installed in the workspace. You enter through the web IDE or JupyterLab in a browser, or over SSH from VS Code or a terminal on your PC. See Connect to the server.
Who does what
Section titled “Who does what”| Task | Admin | Workspace manager | Member |
|---|---|---|---|
| Create and delete, change resources or image | Yes | - | - |
| Start and stop | Yes | Yes | - |
| Add, remove and change the role of members | Yes | Yes | - |
| Save, roll back and delete environment versions | Yes | Yes | - |
| Import another environment, publish as shared | Yes | Yes | - |
| Change the display name | Yes | Yes | - |
| Develop, install packages, send training | Yes | Yes | Yes |
Workspace manager is a role set per workspace. For a team workspace, the lead of that team can also start, stop and manage members.
Start and stop
Section titled “Start and stop”A workspace manager or an admin starts the workspace from Manage › Workspaces. While it starts, the log panel opens by itself and shows the progress steps with the container log. Secret values in the log are masked. Progress for stopping and for saving the environment is kept in the same place.
- Workspaces never stop on their own. Stop yours when you are done.
- Code and installed packages survive a stop and a start. Stopping does not create a version, though. To keep a version, use environment save below.
- The number of workspaces the server can keep running at once equals the size of the workspace port range the admin set (Install, update and back up).
GPU mode
Section titled “GPU mode”The admin picks a GPU mode when creating or editing a workspace. The GPU is taken when the workspace starts and released when it stops.
| Mode | Behavior | Suited to |
|---|---|---|
| None | No GPU | - |
| Dedicated | Holds the chosen number of GPUs alone while running | Servers with several GPUs, each with its own memory |
| Shared | Shared-mode workspaces split one GPU | Unified memory servers where one GPU shares server memory. The screen marks it 'recommended' |
A shared workspace checks a memory sum when it starts. The CPU memory of all workspaces sharing that GPU, plus the CPU memory of yours, must stay under a limit, or the start is refused. On a unified memory server the limit is server memory minus the system reserve. On a server where each GPU has its own memory, the limit is that GPU's memory. The refusal message shows the amount in use, the amount requested and the limit.
A GPU held by a running dedicated workspace cannot be taken by any other workspace, and a GPU held by running shared workspaces cannot be taken as dedicated. In those cases the start is refused and the message says why. Start yours after that workspace stops. On a server with one GPU, only one dedicated workspace can run at a time.
Training jobs sent to a queue start based on server memory, whatever the workspace GPU mode is. That order is described in Share GPUs and the queue.
Each workspace gets a dedicated disk of a set size, mounted at /qgon. The home folders and the shared folder all live on it. When it reaches the limit you get a 'disk full' error and cannot write more. Clean up files or ask the admin to grow the disk. Disks can only grow.
You can see usage on the workspace screen. If the disk is not attached, a warning appears at the top of the screen; tell the admin. After a server restart, the disks attach again by themselves.
Outputs that experiments leave (artifacts, models, datasets) are stored on the qgon file server, not on the workspace disk. Deleting a workspace keeps experiment records and their outputs.
Save and roll back the environment
Section titled “Save and roll back the environment”| Action | Result |
|---|---|
| Stop and start again | Code, pip and conda environments and anything installed with apt all stay |
| An admin changes resources or the image | The environment is saved automatically just before the rebuild, and the workspace is rebuilt from that version. Files under /qgon stay |
| Save environment | Records the current state as version v1, v2 and so on. You can add a note |
| Roll back | The chosen version is used the next time the workspace starts |
| Delete the workspace | The disk and every saved version are deleted. This cannot be undone |
What a saved environment contains
Section titled “What a saved environment contains”Saving records the system area of the container as a version. That covers OS packages installed with apt and packages installed into the workspace's default Python environment. A plain pip install without sudo goes into the default Python environment and is kept in the version when you save. Members of the same workspace can remove or change packages that others installed.
/qgon (the home and shared folders) is not part of a saved environment. It stays on the workspace disk instead. So packages installed with pip install --user, or venv and conda environments made in your home folder, are not kept in the version. If such packages are in your home folder when you save, you get a warning with the list. Install them again without --user and save once more.
Environment versions are used as images for training jobs and can be imported into other workspaces. Members of the same workspace can see what is inside a version. Do not install secrets such as tokens or keys into the environment. Pass them as run arguments or keep them in files under /qgon.
A workspace manager or an admin deletes versions. The version in use, and any version that a job waiting in the queue uses, cannot be deleted. Deleted version numbers are not reused.
Check the SDK version
Section titled “Check the SDK version”If the qgon SDK inside an environment is older than 0.3.17, models trained with it are not uploaded to the qgon file server. Such versions carry a 'Models not saved' mark. If you pick one for a new run, a notice appears under the field, but the run is not blocked. Update the SDK with Update SDK on the workspace screen, save the environment as a new version and use that version.
A newly created workspace upgrades its SDK to the newest version on the server once, on its first start. Existing workspaces are left alone because the upgrade could mix with packages users installed. Use the button above for them.
Train with a saved environment
Section titled “Train with a saved environment”You can use the environment you prepared in a workspace as is for GPU queue jobs. There is no need to build a separate training image.
qgon run --queue gpu --env v3 -- python train.py # v3 of the current workspaceqgon run --queue gpu --env team-a:v3 -- python train.py # v3 of another workspace, team-aqgon run --queue gpu --env v3 --dry-run -- python train.py # show the image and files only, do not sendimport qgon
r = qgon.submit(["python", "train.py"], queue="gpu", env="v3")print(r.id, r.url)In a new run on Build › Scheduling, pick the workspace and the environment version. When you clone an experiment from the experiments screen, you can also pick a version in the run environment field of the clone dialog.
- Write the version as
3orv3.v03andV3stop with a format error before anything is sent. - Inside a workspace the current workspace is known automatically. When sending from outside a workspace, write
<workspace>:<version>. - Only members of that workspace and admins can use it. Both the sender and the author of the experiment must be members. If the version does not exist or you are not a member, the server refuses and deletes the run it was creating along with the uploaded code.
--envand--imagecannot be used together.
Inside the training job you have the packages from the saved environment and /qgon-data (mounted datasets, read-only). /qgon is not attached. Code comes in as the code qgon run uploaded, and data comes in as datasets. Sending is covered in Run training on the GPU queue and datasets in Datasets.
The environments screen
Section titled “The environments screen”On Manage › Environments, anyone who is signed in sees every environment version on the server: workspace, version, note, creator, time, size and where it is used.
Size has two values, total and reclaimable. Many environments share layers, so the reclaimable size counts only layers that no other image has. It is close to the space you actually get back by deleting that version. An environment saved on top of a base image shows only what you saved.
Import: Workspace managers and admins import an environment from another workspace, or a base image, as a new version of their own workspace. Accounts, password hashes, SSH keys, logs and temporary files from the source are removed on import. The new version applies the next time the workspace starts. To go back to an older version of the same workspace, use roll back, not import.
Delete: Only the manager of that workspace and admins delete versions. The version in use, versions that waiting jobs use and versions that containers use cannot be deleted. Hover over the delete button to see why.
Shared environments
Section titled “Shared environments”A shared environment belongs to no workspace. Use it to keep a standard environment that a team shares in one place. It stays even if the source workspace is deleted.
- Press Publish as shared on a saved environment row. A workspace manager publishes saved environments of their own workspace. An admin can publish any.
- Enter a new name (2 to 31 lowercase letters, digits or
-, starting with a lowercase letter), a title and a description. You can also upload it as a new version of an existing shared environment. Only the person who first published that name and admins can add new versions. - A copy with accounts, password hashes, SSH keys and logs removed is uploaded. Base image versions cannot be published.
Anyone can see shared environments. Importing one into a workspace you manage makes it a new version of that workspace. Only a name is added to the same image, so no extra disk is used. Training jobs cannot use a shared environment directly. Send them with the imported workspace version. When creating a new workspace, an admin can pick a shared environment instead of a base image.
The person who first published it and admins edit and delete it. If workspace versions imported from it, containers or waiting jobs use it, it cannot be deleted and the screen shows what blocks it. Deleting that version in the importing workspace makes the shared environment deletable.
Delete a workspace (admin)
Section titled “Delete a workspace (admin)”When an admin deletes a workspace, the confirmation dialog shows a preview: how many saved environments go with it and the space they free, environments that stay because other workspaces imported them, saved pipelines that can no longer run, waiting jobs, running jobs, disk usage and member count. A workspace with waiting jobs cannot be deleted.
Environment images used by running jobs cannot be deleted and stay behind. After those jobs end, delete them under orphan images on Manage › Environments. Only admins see that list.
Manage members (workspace manager)
Section titled “Manage members (workspace manager)”Add: On the members tab of the workspace screen, pick a user and a role (manager or member). Only an admin can add someone from outside the team to a team workspace. A warning appears when you add a member to a workspace that holds an admin account's key.
Remove: The person's access ends at once and their home folder is deleted. This cannot be undone, so move files worth keeping to the shared folder first. The keys that person used in this workspace stop working immediately. Experiment records stay.
When connected from outside the server, you can change members only if the admin allowed 'Workspace members' for external access. Changes made that way notify every admin (Security and access).