Enable or disable the Databricks Repo feature

The Databricks Repos feature is enabled by default for new workspaces, but can be disabled by admins using the Databricks REST API /api/2.0/workspace-conf or a Databricks SDK. Admins can also use the REST API or SDK to turn on Databricks Repos for older workspaces where the feature has been disabled in the past. This topic provides an example notebook you can use to perform this operation.

Run a notebook to enable (or disable) the Databricks Repo feature

Import this notebook into the Databricks UI and run it to enable the Databricks Repo feature. To disable the Databricks Repo feature, call /api/2.0/workspace-conf and set enableProjectTypeInWorkspace to false.

Enable a Databricks Repo

Get notebook