https://github.com/ijlyttle/rscloud.dash.py
Launch Python Dash apps from RStudio Cloud
https://github.com/ijlyttle/rscloud.dash.py
Last synced: 11 days ago
JSON representation
Launch Python Dash apps from RStudio Cloud
- Host: GitHub
- URL: https://github.com/ijlyttle/rscloud.dash.py
- Owner: ijlyttle
- License: other
- Created: 2022-04-03T23:26:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-05T19:27:28.000Z (about 4 years ago)
- Last Synced: 2026-03-31T16:48:12.020Z (3 months ago)
- Language: R
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# rscloud.dash.py
[](https://github.com/ijlyttle/rscloud.dash.py/actions)
The goal of rscloud.dash.py is to provide some helper functions to launch Python Dash apps from RStudio Cloud.
## Installation
You can install the development version of rscloud.dash.py like so:
``` r
devtools::install_github("ijlyttle/rscloud.dash.py")
```
## Example
If you are developing a Python Dash app using RStudio Cloud, you can launch it with:
```{r example, eval=FALSE}
library("rscloud.dash.py")
run_dash_app("dash.py", venv = "./venv")
```
This will open your local browser to the Dash App, but **you will have to reload** the page after a few seconds, because the browser is launched *before* the Dash app is launched.
It has to be in this order because the launching the app consumes the R session.
I know there has to be a clever way to get around this, but `¯\_(ツ)_/¯`.