The Databricks extension for Visual Studio Code enables you to connect to your remote Databricks workspaces from the Visual Studio Code integrated development environment (IDE) running on your local development machine. You can then:
.py
) and Python, R, Scala, and SQL notebooks (.py
, .ipynb
, .r
, .scala
, and .sql
) from Visual Studio Code as Lakeflow Jobs in your remote workspaces. See Run a Python file as a job.note
The Databricks extension for Visual Studio Code supports running R, Scala, and SQL notebooks as automated jobs but does not provide any deeper support for these languages within Visual Studio Code.
Get startedâTo get started using the Databricks extension for Visual Studio Code:
pytest
. See Run tests with pytest using the Databricks extension for Visual Studio Code.Once the extension is installed, you can create a new Databricks project using the Databricks extension for Visual Studio Code:
my_project
, then pressing Enter.A Databricks Asset Bundles project has a databricks.yml
file in the project's root folder. See Databricks Asset Bundle configuration. If you want to use the extension with an existing Databricks Asset Bundles project:
Launch Visual Studio Code. From the main menu, click File > Open Folder and navigate to the directory that contains your bundle project.
Click the Databricks icon in the Visual Studio Code sidebar to open and begin using features of the extension.
If the Databricks extension for Visual Studio Code discovers more than one Databricks Asset Bundles project in the current folder, it lets you choose to open a project or create a project configuration file in the root folder.
Select a host and authentication method for the project. See Set up authorization for the Databricks extension for Visual Studio Code.
note
If you open a project created using the Databricks extension for Visual Studio Code v1, migration is attempted automatically using the project's existing authentication and workspace configuration. The migration button is only available if the automatic migration fails.
Switch between Databricks projectsâThe Databricks extension for Visual Studio Code allows you to have multiple Databricks projects within your Visual Studio Code workspace and easily switch between them. With your multi-bundle project open in the Visual Studio Code workspace:
Click the Databricks icon in the Visual Studio Code sidebar to open the extension.
Click Local Folder to select the project for the extension to use.
note
Run actions are only available for files in the active bundle.
Convert a project to a Databricks projectâIf you have an existing project that you want to convert to a Databricks project:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4