quarto-ext / shinylive

Quarto extension to embed Shinylive for Python applications
https://quarto-ext.github.io/shinylive/
MIT License
144 stars 8 forks source link

Multi-file layout doesn't work with R #45

Open royfrancis opened 6 months ago

royfrancis commented 6 months ago

Just trying out the multifile layout of the editor.

```{shinylive-r}
#| standalone: true
#| components: [editor, viewer]

## file: ui.r
ui <- fluidPage(
  sliderInput("value", label="Value", min=1, max=50, step=1, value=2),
  textOutput("out")
)

## file: server.r
server <- function(input, output, session) {
  output$out <- renderText(paste0("Squared: ",input$value^2))
}

#shinyApp(ui=ui,server=server)

The editor seems to be working, but the app doesn't show up.

![Screenshot 2024-03-24 at 12 45 03](https://github.com/quarto-ext/shinylive/assets/5083500/32f5ba5a-6741-4810-8c40-b86d8c6a0296)

quarto 1.4.549 quarto-shinylive 0.1.0