Have you ever given a talk or presentation and wanted an R or Python console right there in your slides for some quick throwaway examples or demos? Do you find switching to another window or desktop so that you can show some work in an IDE fiddly and distracting?
If so, this plugin is for you! With Quarto Drop, you can press a shortcut key to immediately drop down from the top of the slide an interactive R or Python console, editor and plotting window. The same shortcut key then dismisses the console.
Show your demo then dismiss the console. Later, on another slide, you can drop it down again and state is maintained over multiple slides.
Code execution is powered by WebAssembly, using webR and Pyodide. No R or Python execution servers are required.
quarto add r-wasm/quarto-drop
yaml
header:---
format: revealjs
revealjs-plugins:
- drop
---
Example slides:
format:
revealjs:
drop:
shortcut: "]"
button: false
format:
revealjs:
drop:
engine: pyodide
format:
revealjs:
drop:
engine: webr
webr:
packages:
- ggplot2
- dplyr