Databricks Notebook Renderer — Release 2.0Release 2.0 brings a more complete Databricks notebook experience directly inside Visual Studio Code. You can connect to Databricks, select compute, open supported notebook files, execute cells on a Databricks cluster, and view execution output without leaving VS Code. What’s NewDatabricks ConnectionYou can now connect your VS Code workspace to Databricks using your workspace URL and access token. Once connected, the extension validates your credentials and stores them securely using VS Code Secret Storage. Compute SelectionYou can select a Databricks compute target from VS Code. The selected compute is remembered for the workspace, so you do not need to select it again every time you restart VS Code. Notebook Cell ExecutionNotebook cells can now be executed directly on Databricks compute. Supported languages:
The extension creates and reuses a Databricks execution session for each notebook and language combination. Databricks Source Notebook SupportRelease 2.0 adds support for Databricks source-style Python notebooks. Supported file types:
Databricks source notebooks using markers such as the following can now be opened as notebooks:
Markdown and Magic Cell SupportThe extension can detect Databricks magic commands in source notebooks, including markdown cells. Examples:
Rich Output ImprovementsNotebook output rendering has been improved. Supported output types include:
Databricks table results are rendered as tables in VS Code notebook output. Databricks SidebarA new Databricks sidebar view helps you see the current extension state. The sidebar shows:
How to Use1. Connect to DatabricksRun the command:
Enter your Databricks workspace URL and access token when prompted. 2. Select ComputeRun the command:
Choose the cluster where notebook cells should run. 3. Open a NotebookOpen a supported notebook file:
For Databricks source Python notebooks, choose the Databricks notebook editor when VS Code asks how to open the file. 4. Run CellsUse the notebook cell run button or VS Code notebook shortcuts to execute cells. Cells are executed on the selected Databricks compute. 5. DisconnectRun the command:
This clears the active connection and session state. Notes and Limitations
|