xaringan icon indicating copy to clipboard operation
xaringan copied to clipboard

Live code/Notebook in Slides

Open royfrancis opened this issue 6 years ago • 3 comments

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.

basic_usage

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.

royfrancis avatar Apr 04 '19 08:04 royfrancis

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...

tcgriffith avatar Apr 04 '19 13:04 tcgriffith

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?

tcgriffith avatar Apr 04 '19 14:04 tcgriffith

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.

Btibert3 avatar Aug 07 '19 11:08 Btibert3