Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[proposal] running gwalkr in shiny #13

Open
ObservedObserver opened this issue Oct 23, 2023 · 2 comments
Open

[proposal] running gwalkr in shiny #13

ObservedObserver opened this issue Oct 23, 2023 · 2 comments

Comments

@ObservedObserver
Copy link
Member

Allow users to build interactive data with gwalkr app in shiny.

Now in python ecosystem, users can use pygwalker with pyhon-shiny to build a data app

@bruceyyu
Copy link
Collaborator

Yes it's possible to integrate GWalkR into Shiny!
Here is a minimal runnable code snippet to start a Shiny web app with GWalkR, and load an Iris dataset

library(GWalkR)
library(shiny)
library(bslib)
data(iris)

ui <- fluidPage(
  titlePanel("GWalkR in Shiny!"),
  gwalkrOutput("gwalkrPlot")
)

server <- function(input, output) {
  output$gwalkrPlot <- renderGwalkr({
    gwalkr(iris)
  })
}

shinyApp(ui = ui, server = server)

However, personally I don't use Shiny much for web app dev. If you need more support for features of GWalkR in Shiny, pls post the usage scenarios and requirements below 👀

@noamanemobidata
Copy link

Add a function to update Gwalkr from the server, such as updateGwalkr(session, id, lang = "en", dark = "dark", ...). Additionally, consider adding a parameter to allow selecting the default tab view (e.g., displaying data instead of visualization).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants