https://github.com/ijlyttle/reactivity-demo-dash
Demonstration of Plotly Dash App
https://github.com/ijlyttle/reactivity-demo-dash
Last synced: about 1 month ago
JSON representation
Demonstration of Plotly Dash App
- Host: GitHub
- URL: https://github.com/ijlyttle/reactivity-demo-dash
- Owner: ijlyttle
- License: mit
- Created: 2021-12-22T00:01:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-11T19:54:01.000Z (about 4 years ago)
- Last Synced: 2025-02-15T11:48:12.357Z (over 1 year ago)
- Language: Python
- Size: 84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# reactivity-demo-dash
The goal of this repository is to show how to implement a reactive data-science app using Dash.
This is part of [*Data-Science Reactivity: Three Ways*](https://ijlyttle.github.io/reactivity-three-ways-book/), an effort to show how to make the same "app", using:
- R: [Shiny](https://shiny.rstudio.com/)
- Python: [Dash](https://dash.plotly.com/)
- JavaScript: [Observable](https://observablehq.com/@observablehq/five-minute-introduction)
## Aggregate: local
There's a [deployed version](https://aggregate-local.herokuapp.com) of this app.


## RStudio Cloud
If you are running this from Ian's RStudio Cloud Project, there will be a package available called `rscloud.dash.py`.
It has a single function, `run_dash_app()`, which helps us launch Dash from RStudio Cloud.
From the root of the project, at the R console:
```r
library("rscloud.dash.py")
run_dash_app("app-aggregate-local.py", venv = "venv")
```
It will launch the browser, then the app.
The browser will say "Connection Refused"; don't worry, wait a few seconds then reload.
You can stop the Dash app from the R console.