Back to Blog
![]() ![]() In the file editor’s title bar, click the drop-down arrow next to the play ( Run or Debug) icon. Set any debugging breakpoints within the Python file. In your code project, open the Python file that you want to run or debug. If the red Databricks Connect disabled button still appears, click it, and complete the on-screen instructions to get the blue Databricks Connect enabled button to appear.Īfter the blue Databricks Connect enabled button appears, you are now ready to use Databricks Connect.Īfter you enable Databricks Connect for your code project, run or debug your Python file or notebook as follows. In the Visual Studio Code status bar, the blue Databricks Connect enabled button appears. Would you like to install it in the environment. If the Databricks Connect package is not already installed, the following message appears: “For interactive debugging and autocompletion you need Databricks Connect. If the Cluster section is configured but the cluster is not compatible with Databricks Connect, click the red Databricks Connect disabled button, click Attach Cluster, and select a compatible cluster. If the Cluster section is not already configured in the extension, the following message appears: “Please attach a cluster to use Databricks Connect.” Click Attach Cluster and select a cluster that meets the Databricks Connect requirements. In the Visual Studio Code status bar, click the red Databricks Connect disabled button. With the extension opened and the Workspace section configured for your code project, do the following: ![]() On the User tab, expand Extensions, and click Databricks.įor Sync: Destination Type, select workspace. With the extension and your code project opened, and a Databricks configuration profile already set, in the Command Palette ( View > Command Palette), type Preferences: Open User Settings, and then click Preferences: Open User Settings. To enable the Databricks extension for Visual Studio Code to use workspace files locations within a Databricks workspace, you must first set the extension’s Sync: Destination Type setting to workspace as follows: ![]() To use workspace files locations with the Databricks extension for Visual Studio Code, you must use version 0.3.5 or higher of the extension, and your Databricks cluster must have Databricks Runtime 11.2 or higher installed. You cannot use an existing workspace files location in your workspace unless it was created by the extension. The Databricks extension for Visual Studio Code works only with workspace file locations that it creates. gitignore file is created, the extension adds a. gitignore cannot be found in any parent folders. gitignore file to the project if the file does not exist or if an existing. This file contains the URL that you entered, along with some Databricks authentication details that the Databricks extension for Visual Studio Code needs to operate. The extension also creates in this folder a file named project.json if it does not already exist. The extension creates a hidden folder in your project named. If the Databricks extension for Visual Studio Code detects an existing matching Databricks configuration profile for the URL, you can select it in the list.Ĭlick Edit Databricks profiles to open your Databricks configuration profiles file and create a configuration profile manually. In the Command Palette, for Databricks Host, enter your workspace instance URL, for example. The Databricks extension for Visual Studio Code does not support Google Cloud credentials authentication. Depending on the type of authentication that you want to use, finish your setup by completing the following instructions in the specified order:ĭatabricks personal access token authenticationĬreate or identify an access token, as specified in Databricks personal access token authentication.Ĭreate or identify a Databricks configuration profile with the required fields, as specified in Databricks personal access token authentication.įinish setting up authentication by continuing with Set up authentication with a configuration profile.įinish setting up your project by setting the cluster and setting the workspace files location. It enables you to configure Databricks authentication once and then use that configuration across multiple Databricks tools and SDKs without further authentication configuration changes.īefore you can use the Databricks extension for Visual Studio Code, you must set up authentication between the Databricks extension for Visual Studio Code and your Databricks workspace. This approach helps make setting up and automating authentication with Databricks more centralized and predictable. ![]() The Databricks extension for Visual Studio Code implements portions of the Databricks client unified authentication standard, a consolidated and consistent architectural and programmatic approach to authentication. ![]()
0 Comments
Read More
Leave a Reply. |