quarto-ext / shinylive

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

Show error messages #43

Open royfrancis opened 4 months ago

royfrancis commented 4 months ago

It seems like error messages are not displayed. Is there a way to display errors, warnings etc since I want to use this on a course.

wch commented 4 months ago

Can you tell us which display mode are you using for the apps? Is it editor and viewer?

royfrancis commented 4 months ago

There doesn't seem to be a difference whether it's viewer or editor.

Here is how the app normally looks like in R shiny:

Screenshot 2024-03-20 at 16 41 47

Here is how the app looks like in shinylive (showing both with and without editor):

Screenshot 2024-03-20 at 16 51 21

Here is my test app:

---
title: "Shinylive"
format:
  html:
    format: html
filters:
  - shinylive
---

```{shinylive-r}
#| standalone: true
#| components: [editor, viewer]
shinyApp(
ui=fluidPage(
  selectInput("data_input",label="Select data",
              choices=c("","mtcars","faithful","iris")),
  tableOutput("table_output")
),

server=function(input, output) {
  getdata <- reactive({ get(input$data_input,'package:datasets') })
  output$table_output <- renderTable({head(getdata())})
})

quarto 1.4.549 quarto-shinylive 0.1.0