A minimal Dash app for testing purposes. app.py source from https://dash.plotly.com/minimal-app
- Internal Server: http://w0lxprconn01.worldbank.org:3939/
- External Server: https://datanalytics.worldbank.org/
Ensure you have an RStudio Connect account, if not request here. Upon account provisioning, generate API key(s) on the target server's UI.
Check which python version is supported by the server with:
rsconnect content search --server [server URL] --api-key [your API key] | jq -c '.[] | {py_version}' | sort | uniq
As of writing both the internal and external server supports 3.8.14 so that's the version we are going to use for building & deploying the dash app. If you are using pyenv
this repo's python version has configured to use 3.8.14. If the target server uses a different version, feel free to switch using pyenv local 3.x.x
.
To verify the app works locally:
pip install -r requirements.txt
python app.py
open http://127.0.0.1:8050/
You should see a single chart app.
To deploy:
rsconnect deploy dash --server [server URL] --api-key [your API key] ./