Manage workspaces
Create a workspace
You can create a workspace from a template on the home page. These templates include a code sample and the suggested compute and environment configurations by Anyscale. You can customize these examples with your own code and settings.
To create a blank workspace, go to the Workspaces page and select Create and Custom blank workspace.
Creating a blank workspace gives you the option to configure all the workspace settings prior to starting.
Idle termination
Anyscale terminates a workspace after a period of inactivity by default. The following actions count as activities:
- A running Ray Job is an ongoing activity for its duration.
- Completing or canceling a command submitted through any terminal (web terminal, VS Code). A submitted command does not count as an activity until it finishes.
- Making a change to the filesystem of an Anyscale Workspace.
- A change made by code running in the workspace only counts as activity if it causes a new workspace snapshot. In other words, the change affects a file tracked by Git.
To disable automatic idle termination, select Auto termination from the dropdown next to Terminate in a workspace. Here, you can edit idle termination and maximum uptime settings.
Running a notebook doesn't automatically count as activity. However, when running ray.init()
inside a notebook or attaching a Ray Driver, the workspace remains active unless it's explicitly stopped with ray.shutdown()
or exceeds the maximum uptime configured.
Update existing workspaces
Dependencies
The Dependencies tab within a workspace offers the ability to either change the base image or manage the pip packages installed in it.
Anyscale automatically tracks pip packages installed on a workspace when running pip install PACKAGE_NAME
on any terminal. For more information, check Dependency Management.
Compute configuration
Click on the workspace status in the right top corner to open the cluster panel. In this panel, you can change the compute configuration of the workspace and monitor the status of the cluster.
Duplicate a workspace
Duplicating a workspace creates a new workspace from the current state of an existing one. That includes:
- Code
- Compute config
- Dependencies
However, cluster storage isn't duplicated.