An open API service indexing awesome lists of open source software.

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

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

[![R-CMD-check](https://github.com/ijlyttle/rscloud.dash.py/workflows/R-CMD-check/badge.svg)](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 `¯\_(ツ)_/¯`.