Skip to content

Latest commit

 

History

History

dash-penguins

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

demo-dash-penguins

https://colorado.rstudio.com/rsc/demo-dash-penguins/

Usage

Create a new virtual environment:

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

The run the app:

export DASH_DEBUG=1
python app/app.py

Deployment

Git-backed

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 dash \
  --overwrite \
  --python .venv/bin/python \
  --entrypoint app \
  app

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

Programatic

You can deploy the app using the rsconnect cli:

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