-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc844b5
commit 028c487
Showing
3 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ project: | |
type: website | ||
render: | ||
- example.qmd | ||
- example-python.qmd | ||
output-dir: example_site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
title: "Quarto Drop plugin for Reveal.js" | ||
subtitle: "A dropdown R or Python console" | ||
format: | ||
revealjs: | ||
drop: | ||
engine: pyodide | ||
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: pyodide | ||
pyodide: | ||
packages: | ||
- matplotlib | ||
--- | ||
``` |