Please see the below instructions on how to set up and run the Streamlit dashboard using a virtual environment.
It’s recommended to use a virtual environment to manage dependencies:
python -m venv venv
venv\Scripts\activatepython3 -m venv venv
source venv/bin/activateOnce the virtual environment is activated, install the required dependencies:
pip install -r requirements.txtTo start the dashboard, run:
streamlit run dashboard.pyTo stop the running Streamlit app, press CTRL + C in the terminal.
When you're done, deactivate the virtual environment with:
deactivate- If Streamlit is not found, install it manually:
pip install streamlit
- If
requirements.txtis missing, create one with:pip freeze > requirements.txt
Now you’re ready to run your Streamlit dashboard! 🚀🎉