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

support for Shiny R #1484

Closed
steverweber opened this issue May 24, 2016 · 20 comments
Closed

support for Shiny R #1484

steverweber opened this issue May 24, 2016 · 20 comments

Comments

@steverweber
Copy link

support for Shiny R would be nice.

seems zeppelin might also work on this.
elbamos/Zeppelin-With-R#18

@takluyver
Copy link
Member

This would mainly be an issue for IRkernel, though there might be some architectural considerations - from the linked issue, it sounds like shiny expects a direct network connection from the browser to the kernel, which isn't necessarily easy with Jupyter.

@elbamos
Copy link

elbamos commented May 25, 2016

@takluyver Yes that's correct.

I thought it would require considerable effort.

On the other hand, it might also make sense as a collaboration between the folks who work on IRkernel, and me on the Zeppelin side. Perhaps we could convince RStudio to put in whatever hooks are necessary to facilitate working with notebook interfaces. Considering that rstudio now has its own R notebook interface, perhaps this won't be a hard ask.

@Carreau
Copy link
Member

Carreau commented Jun 8, 2016

On the other hand, it might also make sense as a collaboration between the folks who work on IRkernel, and me on the Zeppelin side.

Perhaps we could convince RStudio to put in whatever hooks are necessary to facilitate working with notebook interfaces. Considering that rstudio now has its own R notebook interface, perhaps this won't be a hard ask.

Maybe, I don't think we would be against. It's probably a hard sell, usually the RStudio user community tend to be divided from the Jupyter one. Someone could still try to have the 2 groups discussing.

@Carreau Carreau added this to the wishlist milestone Jun 8, 2016
@steverweber
Copy link
Author

the spirit of the opensource should bring us together.

perhaps @jjallaire one of the most active users at https://github.com/rstudio/rstudio could drop a line.

@jjallaire
Copy link

Yes, as you said we're currently working on our own notebook interface based on R Markdown. It would indeed be cool to be able to host multiple types of notebooks within RStudio but there would considerable architectural issues to surmount so not something we can pursue in the short term.

@elbamos
Copy link

elbamos commented Jun 9, 2016

I don't think we want to host other notebooks within RStudio. Rather, we want to make it possible for people using other notebooks to run shiny apps in their notebooks.

On Jun 8, 2016, at 9:01 PM, JJ Allaire notifications@github.com wrote:

Yes, as you said we're currently working on our own notebook interface based on R Markdown. It would indeed be cool to be able to host multiple types of notebooks within RStudio but there would considerable architectural issues to surmount so not something we can pursue in the short term.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@jjallaire
Copy link

Ah, got it! I don't think there is anything in principle that would prevent integrating Shiny with other notebooks (the shiny package is entirely decoupled from RStudio). One problem (which is shared by the RStudio IDE notebook) is that running a Shiny application currently blocks the console/UI entirely. This isn't a problem when you are running a standalone Shiny application but of course is a a problem when you want to use Shiny as an embedded component within an interactive session.

We have some work we are planning to enable "background" execution of Shiny applications (i.e. still running on the main thread but not blocking the REPL). Once this is done it should be straightforward for all notebook interfaces to take advantage of.

@elbamos
Copy link

elbamos commented Jun 9, 2016

That's exactly what we're looking for - thanks! Can you let us know when there's testing code?

On Jun 8, 2016, at 9:41 PM, JJ Allaire notifications@github.com wrote:

Ah, got it! I don't think there is anything in principle that would prevent integrating Shiny with other notebooks (the shiny package is entirely decoupled from RStudio). One problem (which is shared by the RStudio IDE notebook) is that running a Shiny application currently blocks the console/UI entirely. This isn't a problem when you are running a standalone Shiny application but of course is a a problem when you want to use Shiny as an embedded component within an interactive session.

We have some work we are planning to enable "background" execution of Shiny applications (i.e. still running on the main thread but not blocking the REPL). Once this is done it should be straightforward for all notebook interfaces to take advantage of.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@jjallaire
Copy link

Yes, will do!

On Wed, Jun 8, 2016 at 9:47 PM, elbamos notifications@github.com wrote:

That's exactly what we're looking for - thanks! Can you let us know when
there's testing code?

On Jun 8, 2016, at 9:41 PM, JJ Allaire notifications@github.com wrote:

Ah, got it! I don't think there is anything in principle that would
prevent integrating Shiny with other notebooks (the shiny package is
entirely decoupled from RStudio). One problem (which is shared by the
RStudio IDE notebook) is that running a Shiny application currently blocks
the console/UI entirely. This isn't a problem when you are running a
standalone Shiny application but of course is a a problem when you want to
use Shiny as an embedded component within an interactive session.

We have some work we are planning to enable "background" execution of
Shiny applications (i.e. still running on the main thread but not blocking
the REPL). Once this is done it should be straightforward for all notebook
interfaces to take advantage of.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1484 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAGXxx5LfWaHrdhRli3901atbeeMU7DJks5qJ3CagaJpZM4IltxW
.

@saahilguptaq
Copy link

Hi
Any updates on R Shiny integration with Zeppelin? Is it possible now?
Help will be greatly appreciated @elbamos @jjallaire @takluyver @Carreau

@takluyver
Copy link
Member

This is a Jupyter issue tracker, not Zeppelin.

@saahilguptaq
Copy link

Posted it in a wrong group! My bad..

@yuvipanda
Copy link
Contributor

When jupyterhub/jupyter-rsession-proxy#25 gets merged it'll support running Shiny from within the RStudio spawned by it. This isn't direct integration with notebooks, but seems more than good enough for most JupyterHub / Binder deployments!

@yuvipanda
Copy link
Contributor

You can test this out just now at https://mybinder.org/v2/gh/yuvipanda/binder-1/master?urlpath=rstudio

@lookdeepu
Copy link

@yuvipanda You have done an excellent job, Thanks for this work.
https://mybinder.org/v2/gh/yuvipanda/binder-1/master?urlpath=rstudio

@cgpu
Copy link

cgpu commented Nov 18, 2019

When jupyterhub/jupyter-rsession-proxy#25 gets merged it'll support running Shiny from within the RStudio spawned by it. This isn't direct integration with notebooks, but seems more than good enough for most JupyterHub / Binder deployments!

@yuvipanda Any update on that? Is this feature functional? I understand that this is too much of a stretch for a Jupyter Notebook, but! For teaching ggplot2 with dreamRs/esquisse this would be dreamy!

@yuvipanda
Copy link
Contributor

@cgpu yep it works. Check this out: https://github.com/binder-examples/r

@cgpu
Copy link

cgpu commented Nov 19, 2019

@cgpu yep it works. Check this out: https://github.com/binder-examples/r

Woah this is awesome! 🎉 Thanks @yuvipanda.

@yuvipanda
Copy link
Contributor

yw, @cgpu.

I'm going to close this. If you'd like Shiny support in the R kernel, please open an issue in the IRKernel repo.

@heisenbug47
Copy link

Hello people,

It is an old thread, but just checking if it is possible to run shiny apps in Jupyter notebook yet ?

Out of blues I am asked to run an existing shiny app in Jupyter notebook by client and I dont know how to do it or is it possible or not :(

Any small guidance is appreciated.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests