Skip to main content

tw studios

Manage studios

Run tw studios -h to view the list of supported operations.

Manage Studio sessions hosted in Seqera Platform. Studio sessions allow interactive analysis using Jupyter, RStudio, VS Code, and Xpra. Additional custom analysis environments can be defined as needed.

note

Most Studio operations require workspace MAINTAIN permissions.

tw studios view

View studio details

tw studios view [OPTIONS]

Options

OptionDescriptionRequiredDefault
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
-i, --idStudio session identifierYes
-n, --nameStudio nameYes

Run tw studios view -h to view the required and optional fields for viewing session details.

Command:

tw studios view -i 23ce7967 -w community/showcase

Example output:

Studio at workspace '[community / showcase]'

---------------------+------------------------------------------------------------
SessionID | 23ce7967
Name | experiment-analysis-session
Status | STARTING
Status Last Update | Fri, 31 Jan 2025 19:35:07 GMT
Studio URL | https://a23ce7967.connect.cloud.seqera.io
Description |
Created on | Fri, 31 Jan 2025 18:12:27 GMT
Created by | rob-newman | rob.newman@seqera.io
Template | public.cr.seqera.io/platform/data-studio-jupyter:4.1.5-0.7
Mounted Data |
Compute environment | aws-datastudios-sandbox-ireland-16cpus
Region | eu-west-1
GPU allocated | 0
CPU allocated | 2
Memory allocated | 8192
Build reports | NA

tw studios list

List studios

tw studios list [OPTIONS]

Options

OptionDescriptionRequiredDefault
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
-f, --filterOptional filter criteria, allowing free text search on name and templateUrl and keywords: userName, computeEnvName and status. Example keyword usage: -f status:RUNNING.No
-l, --labelsShow labels.Nofalse
--pagePage number for paginated results (default: 1)No
--offsetRow offset for paginated results (default: 0)No
--maxMaximum number of records to display (default: 100)No

tw studios start

Start a studio.

tw studios start [OPTIONS]

Options

OptionDescriptionRequiredDefault
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
-i, --idStudio session identifierYes
-n, --nameStudio nameYes
--mount-data-urisComma separate list of data-link URIs: s3://nextflow-bucket,s3://another-bucketNo
--mount-dataComma separate list of data-link names: nextflow-bucket,my-custom-data-link-nameNo
--mount-data-idsComma separate list of data-link ids: v1-cloud-YjI3MjMwOTMyNjUwNzk5tbG9yZQ=,v1-user-d2c505e70901d2bf6516dNo
--gpuOptional configuration override for 'gpu' setting (integer representing number of cores).No
--cpuOptional configuration override for 'cpu' setting (integer representing number of cores).No
--memoryOptional configuration override for 'memory' setting (integer representing memory in MBs).No
--lifespanOptional configuration override for 'lifespan' setting (integer representing hours). Defaults to workspace lifespan setting.No
-e, --envAdd environment variables to the studio as key=value pairs. Can be specified multiple times (e.g. -e KEY1=value1 -e KEY2=value2).No
--waitWait until given status or fail. Valid options: starting, running, stopping, stopped, errored, building, buildFailed.No
--labelsComma-separated list of labelsNo
--descriptionOptional configuration override for 'description'.No
--spotOptional override to launch the studio on spot instances.No
--sshOptional override to enable SSH connectivity to the studio.No
--allow-userOverride the user (numeric ID, username, or email), besides the creator, allowed to connect to and start this studio when it is private. Omit to leave the allow list unchanged. Only the studio creator may change it.No

For a private Studio, its creator can use --allow-user=<USER> when starting it to replace the additional user allowed to connect and start the Studio. Identify the user by numeric ID, username, or email address. Omit the option to leave the allow list unchanged.

tw studios add

Add a studio

tw studios add [OPTIONS]

Options

OptionDescriptionRequiredDefault
-n, --nameStudio name.Yes
-d, --descriptionStudio descriptionNo
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
-t, --templateContainer image template to be used for Studio. Available templates can be listed with 'studios templates' command.Yes
-ct, --custom-templateCustom container image template to be used for Studio.Yes
--conda-env-yml, --conda-env-yamlPath to a YAML env file with Conda packages to be installed in the studio environmentNo
-c, --compute-envCompute environment nameYes
--mount-data-urisComma separate list of data-link URIs: s3://nextflow-bucket,s3://another-bucketNo
--mount-dataComma separate list of data-link names: nextflow-bucket,my-custom-data-link-nameNo
--mount-data-idsComma separate list of data-link ids: v1-cloud-YjI3MjMwOTMyNjUwNzk5tbG9yZQ=,v1-user-d2c505e70901d2bf6516dNo
--gpuOptional configuration override for 'gpu' setting (integer representing number of cores).No
--cpuOptional configuration override for 'cpu' setting (integer representing number of cores).No
--memoryOptional configuration override for 'memory' setting (integer representing memory in MBs).No
--lifespanOptional configuration override for 'lifespan' setting (integer representing hours). Defaults to workspace lifespan setting.No
-e, --envAdd environment variables to the studio as key=value pairs. Can be specified multiple times (e.g. -e KEY1=value1 -e KEY2=value2).No
--repositoryGit repository URL to import studio configuration from.No
--revisionOptional branch, tag or commit of the Git repository to check out. Requires --repository.No
-a, --auto-startCreate studio and start it immediately (default: false)Nofalse
--privateCreate a private studio that only you can access or manage (default: false)Nofalse
--spotLaunch the studio on spot instances (default: provider/compute environment default).No
--sshEnable SSH connectivity to the studio (default: false).No
--allow-userUser (numeric ID, username, or email), besides the creator, allowed to connect to and start this studio when it is private.No
--labelsComma-separated list of labelsNo
--waitWait until Studio is in RUNNING status. Valid options: starting, running, stopping, stopped, errored, building, buildFailed.No

Run tw studios add -h to view the required and optional fields for adding sessions.

Add a new Studio session in a workspace.

Command:

tw studios add -n new-analysis -w community/showcase \
--description="New Python analysis for RNA experiment ABC" \
--template="public.cr.seqera.io/platform/data-studio-jupyter:4.1.5-0.7" \
--compute-env=48bB2PDk83AxskE40lealy \
--cpu=2 \
--memory=8192

Example output:

Studio 2aa60bb7 CREATED at [community / showcase] workspace.

To create a private Studio and grant access to one additional user, add --private --allow-user=<USER>. Identify the user by numeric ID, username, or email address.

tw studios templates

List available studio templates

tw studios templates [OPTIONS]

Options

OptionDescriptionRequiredDefault
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--maxMaximum number of templates to return, defaults to 20.No20

tw studios checkpoints

List studio checkpoints

tw studios checkpoints [OPTIONS]

Options

OptionDescriptionRequiredDefault
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
-i, --idStudio session identifierYes
-n, --nameStudio nameYes
-f, --filterOptional filter criteria, allowing free text search on name and keywords: after: YYYY-MM-DD, before: YYYY-MM-DD and author. Example keyword usage: -f author:my-name.No
--pagePage number for paginated results (default: 1)No
--offsetRow offset for paginated results (default: 0)No
--maxMaximum number of records to display (default: 100)No

Run tw studios checkpoints -h to view the required and optional fields for listing Studio checkpoints.

List checkpoints for a Studio session:

$ tw studios checkpoints -i 19a3abbd -w community/showcase

tw studios add-as-new

Add a studio from an existing one

tw studios add-as-new [OPTIONS]

Options

OptionDescriptionRequiredDefault
-pid, --parent-idParent studio session identifierYes
-pn, --parent-nameParent studio nameYes
--parent-checkpoint-idParent Studio checkpoint id, to be used as the starting point for the new Studio session. If not provided, it defaults to the most recent existing checkpoint of the parent Studio session.No
-n, --nameStudio name.Yes
-d, --descriptionStudio descriptionNo
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--mount-data-urisComma separate list of data-link URIs: s3://nextflow-bucket,s3://another-bucketNo
--mount-dataComma separate list of data-link names: nextflow-bucket,my-custom-data-link-nameNo
--mount-data-idsComma separate list of data-link ids: v1-cloud-YjI3MjMwOTMyNjUwNzk5tbG9yZQ=,v1-user-d2c505e70901d2bf6516dNo
--gpuOptional configuration override for 'gpu' setting (integer representing number of cores).No
--cpuOptional configuration override for 'cpu' setting (integer representing number of cores).No
--memoryOptional configuration override for 'memory' setting (integer representing memory in MBs).No
--lifespanOptional configuration override for 'lifespan' setting (integer representing hours). Defaults to workspace lifespan setting.No
-e, --envAdd environment variables to the studio as key=value pairs. Can be specified multiple times (e.g. -e KEY1=value1 -e KEY2=value2).No
-a, --auto-startCreate studio and start it immediately (default: false)Nofalse
--privateCreate a private studio that only you can access or manage (default: false)Nofalse
--allow-userUser (numeric ID, username, or email), besides the creator, allowed to connect to and start this studio when it is private.No
--labelsComma-separated list of labelsNo
--waitWait until Studio is in RUNNING status. Valid options: starting, running, stopping, stopped, errored, building, buildFailed.No

Add a Studio from an existing Studio and checkpoint. Use this to experiment without changing the parent Studio state.

Command:

tw studios add-as-new \
--parent-id=657ddbca \
--name=analysis-env-from-parent \
--workspace=community/showcase \
--description="New sandbox for temporary analysis" \
--cpu=2 \
--memory=8192 \
--auto-start

Example output:

Studio 19a3abbd CREATED at [community / showcase] workspace and auto-started.

For a private Studio, use --private --allow-user=<USER> to allow one additional user, identified by numeric ID, username, or email address, to connect to and start it.

tw studios stop

Stop a studio.

tw studios stop [OPTIONS]

Options

OptionDescriptionRequiredDefault
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
-i, --idStudio session identifierYes
-n, --nameStudio nameYes
--waitWait until given status or fail. Valid options: starting, running, stopping, stopped, errored, building, buildFailed.No

Run tw studios stop -h to view the required and optional fields for adding sessions.

Stop an existing Studio session in a workspace.

Command:

tw studios stop -i 13083356 -w community/showcase

Example output:

Studio 13083356 STOP successfully submitted at [community / showcase] workspace.

tw studios update

Update a studio.

tw studios update [OPTIONS]

Options

OptionDescriptionRequiredDefault
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
-i, --idStudio session identifierYes
-n, --nameStudio nameYes
--mount-data-urisComma separate list of data-link URIs: s3://nextflow-bucket,s3://another-bucketNo
--mount-dataComma separate list of data-link names: nextflow-bucket,my-custom-data-link-nameNo
--mount-data-idsComma separate list of data-link ids: v1-cloud-YjI3MjMwOTMyNjUwNzk5tbG9yZQ=,v1-user-d2c505e70901d2bf6516dNo
--gpuOptional configuration override for 'gpu' setting (integer representing number of cores).No
--cpuOptional configuration override for 'cpu' setting (integer representing number of cores).No
--memoryOptional configuration override for 'memory' setting (integer representing memory in MBs).No
--lifespanOptional configuration override for 'lifespan' setting (integer representing hours). Defaults to workspace lifespan setting.No
-e, --envAdd environment variables to the studio as key=value pairs. Can be specified multiple times (e.g. -e KEY1=value1 -e KEY2=value2).No
--labelsComma-separated list of labelsNo
--descriptionOptional configuration override for 'description'.No
--new-nameOptional new name for the studio.No
--sshOptional override to enable or disable SSH connectivity to the studio.No
-c, --compute-envMove the studio to a different (compatible) compute environment. Only allowed while the studio is stopped.No

tw studios delete

Delete a studio.

tw studios delete [OPTIONS]

Options

OptionDescriptionRequiredDefault
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
-i, --idStudio session identifierYes
-n, --nameStudio nameYes

Run tw studios delete -h to view the required and optional fields for listing sessions.

Delete an existing Studio session from a workspace.

tw studios delete -i 2aa60bb7

Studio 2aa60bb7 deleted at [community / showcase] workspace.