Skip to main content

What is the Databricks IDE extension and when should I use it?

Summary

  • The Databricks IDE extension connects Visual Studio Code or Cursor on your local machine to a remote Databricks workspace, so you can develop locally and run on Databricks.
  • It defines, deploys and runs Declarative Automation Bundles from the editor, runs local Python files on clusters or serverless compute, and runs files and notebooks as Lakeflow Jobs.
  • Its Databricks Connect integration builds a local Python environment matched to your target compute, then debugs Python files and notebook cells with breakpoints.
  • Use it when your team writes Python in Visual Studio Code or Cursor and wants bundle-based CI/CD. In other IDEs, such as PyCharm, use Databricks Connect directly.
  • It doesn't support SQL warehouses, only runs R, Scala and SQL notebooks as jobs, and shouldn't be combined with the Databricks SSH tunnel.

What is the Databricks IDE extension and when should I use it?

The Databricks IDE extension is the Databricks extension for Visual Studio Code and Cursor. It connects your local editor to a remote Databricks workspace, so you can write code locally, deploy it as a Declarative Automation Bundle, and run or debug it on Databricks compute. Use it when your team develops Python in Visual Studio Code or Cursor and wants local tooling, version control and CI/CD patterns while the work runs on Databricks.

What the extension does

Feature What you can do
Declarative Automation Bundles Define, deploy and run bundles for Lakeflow Jobs, Spark Declarative Pipelines and MLOps Stacks from the editor
Run on Databricks Run local Python files on clusters or serverless compute in your workspace
Run as a job Run .py files and Python, R, Scala and SQL notebooks as Lakeflow Jobs
Databricks Connect debugging Debug Python files, and notebook cells one at a time, with breakpoints
Workspace sync Synchronize local code with code in your remote workspace
Testing Run Python tests with pytest, locally or on code in your workspace
AI tools (Beta) Install Databricks agent skills and plugins for coding agents

How to set up the Databricks IDE extension

Requirements. You need a Databricks workspace with at least one cluster (you can create one during setup), Visual Studio Code 1.104.0 or above, and Visual Studio Code configured for Python with an interpreter available. SQL warehouses aren't supported by the extension.

  1. In the Extensions view, search for Databricks and install the extension that shows Databricks verified ownership.
  2. Click the Databricks icon in the sidebar. Create a new project from a bundle template, open an existing bundle project (one with a databricks.yml file in its root folder), or convert an existing project.
  3. Select a host and authentication method in the Command Palette.
  4. In the Configuration view, click Set up Python environment and select compute. The extension builds a local .venv, managed by uv, whose Python version and packages match your runtime or serverless version, and installs a compatible version of Databricks Connect.

To debug, open a Python file, set breakpoints, and choose Run on Databricks > Debug current file with Databricks Connect. Output appears in the Debug Console.

How Databricks approaches local development with the extension

The extension builds on two pieces of the Databricks developer stack. Project and environment configuration lives in the bundle's databricks.yml and databricks.env files, and the extension adds a Bundle Resource Explorer and a Bundle Variables View to manage resources and variables. You switch deployment targets, for example from a dev target to a prod target, from the Configuration view. Some features, including syncing workspace folder files and selecting an interactive development cluster, are available only when the target's deployment mode is development.
Databricks Connect handles execution. Your Python code runs locally, so the editor's debugger works, while Spark operations run on Databricks compute.

AI tools for coding agents (Beta)

The Configuration view has an AI tools section, in Beta, that installs Databricks AI tools so coding agents work effectively with Databricks. It recognizes installs at the global or project scope, including ones you made with databricks aitools install from the Databricks CLI, and installed AI tools update to the latest version automatically.

When to use the extension, and when to use something else

  • Use the extension for Python development in Visual Studio Code or Cursor when you want bundles, job runs and Databricks Connect debugging set up from one Configuration view.
  • Use Databricks Connect on its own in other IDEs such as PyCharm or IntelliJ IDEA, in notebook servers, or inside a custom application.
  • Use the Databricks SSH tunnel (Beta) when you want your Python environment and code execution on the remote compute itself. The docs say the SSH tunnel and the IDE extension aren't compatible and shouldn't be used together.
  • Expect limited support for R, Scala and SQL. The extension runs those notebooks as automated jobs but doesn't provide deeper language support in the editor.

FAQs

Does the Databricks IDE extension work in Cursor?

Yes. The extension connects both Visual Studio Code and Cursor to a Databricks workspace.

Can I use the extension with a SQL warehouse?

No. The docs state that Databricks SQL warehouses aren't supported by the extension, so you need a cluster or serverless compute.

Do I need a Declarative Automation Bundles project?

The extension works with bundle projects. If you open a folder that isn't one, creating a configuration in the root folder makes it a bundle project.

Is the IDE extension the same as Databricks Connect?

No. Databricks Connect is the client library that runs Spark code from your machine on Databricks compute. The extension is an editor integration that uses Databricks Connect for debugging and adds bundle deployment, job runs and workspace sync.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.