Create a lightweight data file from your raw results:
cd PROMIS_Dashboard
python prepare_dashboard_data.py --source ../results/This creates results/dashboard_data.parquet (typically 50-100x smaller than raw data).
streamlit run app.pyThe app will automatically use the optimized data file if it exists.
-
Push to GitHub:
git init git add . git commit -m "PROMIS Dashboard" git remote add origin <your-github-repo-url> git push -u origin main
-
Deploy:
- Go to share.streamlit.io
- Sign in with GitHub
- Click "New app"
- Select your repo
- Main file:
app.py - Click "Deploy"
-
Done! Your dashboard will be live in ~2 minutes.
# Build image
docker build -t promis-dashboard .
# Run locally
docker run -p 8501:8501 promis-dashboard
# Or deploy to any cloud provider that supports Docker- ✅
app.py- Main application - ✅
interactive_metrics_viz.py- Standalone visualization code - ✅
results/dashboard_data.parquet- Optimized data (if < 100MB, include in git) - ✅
requirements.txt- Dependencies
- Data size: If
dashboard_data.parquet> 100MB, add it to.gitignoreand upload separately - Updates: Re-run
prepare_dashboard_data.pywhen you have new results - Privacy: Ensure your data doesn't contain sensitive information
Import errors? Make sure all files are in the same directory.
Data not loading? Check that results/dashboard_data.parquet exists and is readable.
Deployment fails? Check requirements.txt has all dependencies.
For more details, see README_DEPLOYMENT.md