Skip to content

Commit d6312c4

Browse files
committed
Enable live autorun on some documentation pages
1 parent 96ef3c5 commit d6312c4

File tree

7 files changed

+20
-0
lines changed

7 files changed

+20
-0
lines changed

docs/exercises/environments.qmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: Managing Environments
33
format: live-html
44
engine: knitr
55
toc: true
6+
webr:
7+
cell-options:
8+
autorun: true
69
---
710

811
{{< include ../_extensions/live/_knitr.qmd >}}
@@ -212,6 +215,7 @@ The `dataset` variable has been created in a `setup: true` block.
212215
Calculate the mean of the `foo` column in `dataset`. Save the result as `my_mean`.
213216

214217
```{webr}
218+
#| autorun: false
215219
#| envir: myenv
216220
#| exercise: ex_shared_1a
217221
my_mean <- ______(dataset$foo)
@@ -234,6 +238,7 @@ The `dataset` variable is also accessible from this exercise, because both exerc
234238
Calculate the standard deviation of the `bar` column in `dataset`.
235239

236240
```{webr}
241+
#| autorun: false
237242
#| exercise: ex_shared_1b
238243
#| envir: myenv
239244
sd(______)

docs/getting_started/plotting.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ subtitle: Dynamic data visualisation for interactive code blocks
44
format: live-html
55
engine: knitr
66
webr:
7+
cell-options:
8+
autorun: true
79
packages:
810
- ggplot2
911
pyodide:

docs/interactive/data.qmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ subtitle: Automatic handling of data conversion to and from WebAssembly
44
format: live-html
55
engine: knitr
66
toc: true
7+
webr:
8+
cell-options:
9+
autorun: true
710
---
811

912
{{< include ../_extensions/r-wasm/live/_knitr.qmd >}}

docs/interactive/reactivity.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ subtitle: Client-side interactive documents through integration with OJS
44
format: live-html
55
engine: knitr
66
webr:
7+
cell-options:
8+
autorun: true
79
packages:
810
- palmerpenguins
911
- ggplot2

docs/other/py_output.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ toc: true
66
resources:
77
- "images"
88
pyodide:
9+
cell-options:
10+
autorun: true
911
packages:
1012
- matplotlib
1113
- ipywidgets

docs/other/resources.qmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ toc: true
77
resources:
88
- data
99
webr:
10+
cell-options:
11+
autorun: true
1012
resources:
1113
- data
1214
- https://raw.githubusercontent.com/mwaskom/seaborn-data/master/flights.csv
1315
pyodide:
16+
cell-options:
17+
autorun: true
1418
packages:
1519
- pandas
1620
- seaborn

docs/other/tables.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ format: live-html
33
title: Displaying Tables
44
webr:
55
render-df: gt-interactive
6+
cell-options:
7+
autorun: true
68
engine: knitr
79
toc: true
810
---

0 commit comments

Comments
 (0)