This repository provides a template for running a Streamlit app inside a Dash app. Follow the instructions below to set up and run the applications.
Ensure you have the following packages installed:
- streamlit==1.35.0
- dash==2.17.1
You can install the required packages using the provided requirements.txt file.
- Clone the repository
git clone https://github.com/derekmeegan/streamlit_in_dash.git
cd streamlit_in_dash
- Create and activate a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install the required packages:
pip install -r requirements.txt
- Run the Dash app. This will also start the Streamlit app in a separate thread:
python dash_app.py
- Open your browser and navigate to http://127.0.0.1:8050 to see the Dash app with the embedded Streamlit app.
This project is licensed under the MIT License - see the LICENSE file for details.