A simple Streamlit app that displays "Hello World!" with an interactive button. Perfect for learning how to deploy Databricks Apps! Deploy this Databricks app and click the "Click me!" button to see magic.
This project contains:
src/app.py- The Streamlit application codesrc/requirements.txt- Python dependencies (streamlit)src/app.yaml- Databricks app configuration
No CLI required! Follow these steps to deploy the app through the Databricks web interface:
- Open your Databricks workspace in a web browser
- Navigate to Workspace in the left sidebar
- Go to your user folder:
Users→your.email@company.com - Create a new folder:
- Click the dropdown → Create → Folder
- Name it:
streamlit-hello-world
- Upload all three files from the
src/directory:- Click into the folder
- Click Create → File → Upload files
- Upload:
app.py,requirements.txt, andapp.yaml
- Click Apps in the left sidebar
- Click Create App
- Click Create a custom app
- Configure:
- App name:
streamlit-hello-world - Compute: Select Medium
- App name:
- Click Create
- Your app's compute is active, but your app is not yet deployed.
- After the app is create click Deploy and specify Source code path where you uploaded 3 files.
- Click Deploy
- Wait 1-2 minutes for deployment (installing dependencies)
- Once status shows "Running", click Open App
- You should see "Hello World! 👋"
- Click the "Click me!" button to see MAGIC!
App shows "Not Available"?
- Make sure all 3 files (
app.py,requirements.txt,app.yaml) are in the same folder - Check that the app status is "Running" (not "Starting" or "Failed")
App exits unexpectedly?
- Verify
requirements.txtcontains:streamlit>=1.28.0 - Ensure
app.yamlis present in the folder
