Skip to main content
You can easily deploy Streamlit apps on Beam. In this guide, we’ll show you how to deploy a simple Streamlit app that visualizes a simple dataset.

View the Code

See the code for this example on Github.

App Structure

There are two components to deploying a Streamlit app on Beam:
  1. An start_server.py file with your Beam code. You can view the source code here.
  2. A app.py file that hosts the Streamlit app
Here’s what the Beam-specific code looks like:
start_server.py

Deployment

To run the app, you can simply invoke the Python module directly:
Running this command will print the URL of the Streamlit app to the console.
You can enter the URL in your browser to view the Streamlit app!