-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexample.qmd
63 lines (48 loc) · 1.06 KB
/
example.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
title: "Quarto Drop plugin for Reveal.js"
subtitle: "A dropdown R or Python console"
format: revealjs
revealjs-plugins:
- drop
---
## Quarto Drop plugin for Reveal.js
Throughout this presentation, an interactive R console and editor can be invoked by pressing the drop shortcut
By default, the drop shortcut is the backtick key: [`]{style="background-color: #EEE; border: 1px solid #333; border-radius: 5px; padding: 0px 8px"}
. . .
</br>
Alternatively, click the console button in the bottom left of the slide
## Configuration
Set the drop shortcut and button visibility in the `yaml` header.
```yaml
---
format:
revealjs:
drop:
button: false
shortcut: "]"
---
```
## Execution Engine
For a Python console, set the `pyodide` engine in the `yaml` header.
```yaml
---
format:
revealjs:
drop:
engine: pyodide
---
```
## Default packages
Automatically download packages when the presentation starts
```yaml
---
format:
revealjs:
drop:
engine: webr
webr:
packages:
- ggplot2
- dplyr
---
```