xaringan
xaringan copied to clipboard
Live code/Notebook in Slides
I am just adding this here as an idea. This most likely needs to be implemented in remarkjs first.
The idea is to be able to run/modify code live in the slide. This has been implemented in python using jupyter notebooks, revealjs and RISE.

https://damianavila.github.io/RISE/ https://github.com/damianavila/RISE
This is useful in demonstrations where you do not want to keep switching between a presentation and a terminal/IDE.
My supervisor will not be happy if I live-run the code during the group meeting and all my group mates have to awkwardly wait in silence until it's finished...
Just kidding, it's a nice feature to have and I can see it's very useful in teaching.
Actually, rdrr.io can embed an runnable snippet into the webpage which should not be hard to embed into a xaringan slide.
But besides teaching, I can't come up with more situations in which live-xaringan is useful. Any ideas?
Just to add to this feature request, as noted above, this would be very helpful for my teaching in class. It would prevent the need to jump from the slide deck to another application. More often than not, the snippets of code are small and take a few seconds, tops, to execute, as the code is more for demonstration than it is full-featured analysis. Bonus points if the terminal could retain past work from slide-to-slide, as opposed to the learnr approach which is a new R session at each jump.