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

Feature Request: A viewer in the REPL #384

Closed
gitdemont opened this issue Mar 13, 2024 · 4 comments
Closed

Feature Request: A viewer in the REPL #384

gitdemont opened this issue Mar 13, 2024 · 4 comments
Labels
feature New feature or request

Comments

@gitdemont
Copy link

Hello,

Would it be possible to have a viewer in the REPL (e.g. an iframe) listening to current in-browser session ?
So as for instance to run shiny apps alike https://github.com/georgestagg/shiny-standalone-webr-demo, display DT::datatable, ... html.

@georgestagg georgestagg added the feature New feature or request label Mar 14, 2024
@georgestagg
Copy link
Member

At the very least, we should support View() for showing data frames in a cell-based format. Also related to #295.

@gitdemont
Copy link
Author

Hi @georgestagg ,

I just tried your #449 PR. And it's 🚀 !

I tested a basic shiny::runGadget but without success (I was too much in a hurry)
console says it's listening to url:port but access to url:port is denied
in addition, REPL is blocked and webr.r-wasm.org/latest needs to be refreshed

However, I was able to display several widgets (from visNetwork and DT) directly in the REPL 👍 .

Thanks a lot !

@georgestagg
Copy link
Member

Closing, with #449 webR should now cover most requirements for viewing HTMLwidgets and UI elements. Shiny and shiny::runGadget is a harder problem, due to the requirement of communication with the shiny server.

I think I would consider displaying Shiny apps and gadgets out of scope for the webR application. For that use case, one should use https://shinylive.io/r/, which already has the infrastructure in place to handle the Shiny server under Wasm.

@gitdemont
Copy link
Author

Thanks for the addition !

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

No branches or pull requests

2 participants