tnederlof / demo-streamlit-penguins

Publish a Streamlit dashboard to RStudio Connect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

demo-streamlit-penguins

screenshot

Usaage

Create a virtual environment.

python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip wheel
pip install -r app/requirements.txt

Then run the app.

streamlit run app/app.py

Deployment

Git-backed deploy

The app is automatically deployed to RStudio connect using git backed deployment. Make any changes to the code, then run the following:

rsconnect write-manifest streamlit \
  --overwrite \
  --python .venv/bin/python \
  --entrypoint app \
  app

⚠️ Remember to update the app/requirements.txt file if you add any new packages.

Programatic deploy

You can deploy the app using the rsconnect cli:

rsconnect deploy streamlit \
  --python .venv/bin/python \
  --entrypoint app \
  --new \
  app

About

Publish a Streamlit dashboard to RStudio Connect

License:MIT License


Languages

Language:Python 100.0%