Skip to main content

Develop Databricks apps

To build data and AI apps with Databricks Apps, you can use any IDE that supports Python, such as PyCharm, IntelliJ IDEA, or Visual Studio Code. Databricks recommends using the Databricks extension for Visual Studio Code, but you can also edit your code in the Databricks notebook and file editor.

The Databricks Apps environment automatically sets several environment variables, such as the URL of the Databricks workspace running the app and values required for authentication. Many apps also need custom configuration, such as a specific command to run the app or parameters for accessing a SQL warehouse. Use the app.yaml file to define these settings.

To develop an app locally:

  • Build and test your app in your preferred IDE.
  • Run the app locally at the command line and preview it in your browser.
  • When the app is complete and tested, move the code and required files to your Databricks workspace.

Use the following topics to support your app development:

Topic

Description

Define the app runtime

Specify how your app runs, including the command, arguments, and default settings.

Define environment variables

Configure environment variables for authentication, workspace access, or app-specific settings.

Manage dependencies

List required Python packages in a requirements.txt file for app execution.

Add resources

Include static files or other assets that your app depends on at runtime.