
This feature is in Beta. Account admins can control access to this feature from the account console Previews page using the Environments for Standard Compute toggle. See Manage Databricks previews.
On classic compute, the Environments dependency mode lets you manage dependencies at the workload level using base environments instead of installing compute-scoped libraries. This is the same model used by serverless compute.
Environment settings stay isolated from compute-level changes, so workloads don’t break when the compute changes underneath them. And because Databricks caches base environments, dependencies don’t resolve and install at startup, so compute starts faster and avoids failures from package resolution, repository availability, or network reliability.
After you connect to a compute that uses the Environments dependency mode, you can select a base environment and add dependencies from the notebook’s Environment side pane. See Use environments in a notebook.
The dependency mode setting is only available on compute that meets the following requirements:
For support details, see Limitations.
To create a compute that uses the Environments dependency mode:
In the workspace sidebar, click Compute then open the All-purpose compute tab.
Click Create compute.
Under Performance, select 19 Beta or above from the Databricks Runtime version drop-down menu.
Expand the Advanced section, then click Dependencies.
For Dependency mode, keep Auto selected to let Databricks resolve the mode, or click Manual and select Environments to set it yourself. See Dependency mode options.

Configure the rest of the compute, then click Create.
After the compute is running, attach a notebook and configure its environment as described in Use environments in a notebook.
The Dependency mode control has two settings that determine how the mode is chosen:
When you select Manual, choose the mode that fits your needs:
If you are editing the settings for existing compute, switching to Environments mode is blocked if the compute has incompatible settings, such as init scripts, cluster libraries, or Docker. If you remove the incompatible settings first, you can then edit the dependency mode.
If you switch to Cluster libraries mode from Environments mode, attached notebooks retain their environment selections but those selections become inactive. If you switch the compute back to Environments mode, those selections become active again.
To use environments in a notebook, attach the notebook to a classic compute resource that uses the Environments dependency mode. After you attach the notebook, you can configure the notebook’s dependencies from the Environment side pane , the same way you do on serverless compute.

A base environment determines the pre-installed libraries and environment version available for your notebook. The Base environment selector in the Environment side pane is where you choose your environment. Databricks recommends using the latest version to get the most up-to-date notebook features. To see details on each environment version, see Environment versions.
The Base environment selector includes the following options:
Databricks caches your notebook’s virtual environment, so dependencies don’t reinstall every time you reopen a notebook or resume after inactivity.
To individually install a dependency:
In the Dependencies section, enter the path of the dependency in the field then click +Add dependency. You can specify a dependency in any format that is valid in a requirements.txt file. Python wheel files or Python projects (for example, the directory containing a pyproject.toml or a setup.py) can be located in workspace files or Unity Catalog volumes.
/Workspace/./Volumes////.whl .Click Apply to install the dependencies and restart the Python process.
Do not install PySpark or any library that installs PySpark as a dependency on your notebooks. Doing so will stop your session and result in an error. If this occurs, remove the library and reset your environment.
To view installed dependencies, click the Installed tab in the Environment side pane. Open the pip installation logs for the notebook environment by clicking pip logs at the bottom of the pane.
The Environments dependency mode supports Python workloads and dependencies in interactive notebooks. The following limitations apply:
%scala code is not supported and will fail.When Environments dependency mode is enabled, the following compute settings are disabled:






