Settings for the Databricks extension for Visual Studio Code
This article lists extension settings for the Databricks extension for Visual Studio Code. See What is the Databricks extension for Visual Studio Code?
Settings reference
The Databricks extension for Visual Studio Code adds the following settings to Visual Studio Code. Open the Settings editor using the Visual Studio Code Command Palette command Preferences: Open Settings. The settings.json file can also be modified directly.
Settings editor (Extensions > Databricks) |
|
Description |
---|---|---|
Bundles: Remove State Refresh Interval |
|
The interval in minutes at which the remote state of the bundle is refreshed. |
Clusters: Only Show Accessible Clusters |
|
Checked or set to The default is unchecked or |
Experiments: Opt Into |
|
Enables or disables experimental features for the extension. Available features include:
|
Ipython Dir |
|
The absolute path to a directory for storing IPython files. The default is the IPYTHONDIR environment variable if it is set, or |
Logs: Enabled |
|
Whether to enable logging. The default is |
Logs: Max Array Length |
|
The maximum number of items to show for array fields. The default is |
Logs: Max Field Length |
|
The maximum length of each field displayed in the logs output panel. The default is |
Logs: Truncation Depth |
|
The maximum depth of logs to show without truncation. The default is |
Override Databricks Config File |
|
An alternate location for the |
Wsfs: Rearrange Cells |
|
Enable or disable rearranging cells in wrapper files created when using |
Environment variable definitions files
Visual Studio Code supports environment variable definitions files for Python projects. You create a file with the extension .env
, and Visual Studio Code applies the environment variables within this .env
file at run time. For more information, see Environment variable definitions file in the Visual Studio Code documentation.
The Databricks extension for Visual Studio Code uses the python.envFile
setting for the location of an environment variable definitions file. The default value for this Visual Studio Code setting is {workspaceFolder}/.env
, but you can modify it using the Settings editor or in settings.json. These environment variables are only applied when code is run locally.