Package persistence helps you save time by keeping installed packages across workspace sessions. Whether you’re working in Python or R, you no longer need to reinstall your packages every time you start or restart a workspace, as long as the environment and workspace are configured to support it.
In addition to speeding up workspace launches, package persistence contributes to easier troubleshooting and iteration, as new environment revisions can be built from any existing base.
This guide explains how to enable and use package persistence, both from the environment settings and from within an active workspace.

To use package persistence, it must first be enabled in an environment.
-
Go to the Revisions tab of your compute environment.
-
Create a new revision or edit an existing one.
-
Check the box for Enable Package Persistence.
The Package Persistence checkbox in the workspace UI only appears if the environment supports it.
Once package persistence is enabled in the environment, you can use it directly in your workspace.
Any packages you install manually will persist across workspace sessions:
Language | Install Command |
---|---|
Python |
|
R |
|
You can also use the Posit Package Manager to install R packages.
If you’re using a custom (external) environment, you’ll need to install the appropriate tools to support package persistence.
Language | Tool | Installation Details |
---|---|---|
Python | uv | Follow the uv installation guide to add it to your base or environment image. |
R | renv | Add this line to your Dockerfile: |
Once installed, Domino will be able to track and persist packages installed within workspaces using these tools.
Domino also supports persistence of the $HOME
directory, allowing you to retain user-specific files across workspace sessions. This is useful for preserving IDE settings, environment configs, or files related to tools like remote Ray clusters.
Enable $HOME directory persistence
-
When launching a workspace, toggle Home Directory Persistence to retain the contents of the
$HOME
directory between sessions. -
This setting ensures that any config files stored in
$HOME
, such as IDE preferences,.ssh
keys, or cluster configs, are preserved.
By enabling home directory persistence, you can keep essential configuration files and tools available across sessions. This reduces setup time and helps maintain a consistent workspace environment. This is especially useful for advanced workflows that depend on personalized settings or external integrations.
-
View Workspace details about user actions, view current and historical Workspace resource usage, and view sessions and commits that were made in a Workspace.
-
Use Git-based projects or import Git repositories to use in your Workspace.
-
Run multiple applications in the same Workspace session if needed.