Skip to content

Commit d0cc0e6

Browse files
committed
Test interactive code blocks
1 parent 701748c commit d0cc0e6

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

Lesson_1_Basics/Lesson_1_Student_Version.ipynb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,13 @@
7878
{
7979
"cell_type": "code",
8080
"execution_count": null,
81-
"metadata": {},
82-
"outputs": [],
81+
"metadata": {
82+
"quarto": {
83+
"engine": "pyodide",
84+
"autorun": false,
85+
"echo": true
86+
}
87+
},"outputs": [],
8388
"source": [
8489
"print('hello world')"
8590
]

index.qmd

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ Read lessons here, run small code snippets live in your browser, *or* launch the
2929

3030
---
3131

32-
## 5 Make a cell interactive (example)
32+
## 5 Try an interactive Pyodide cell
3333

34-
Inside any notebook, select the cell ➜ *Property Inspector ▸ Cell Metadata* and add:
34+
Below is a small Python snippet running **in your browser** via Pyodide. Click **Run Code** to execute it:
3535

36-
```json
37-
{
38-
"quarto": { "engine": "pyodide", "autorun": false }
39-
}
36+
```{pyodide}
37+
#| autorun: false
38+
#| echo: true
39+
#| engine: pyodide
40+
41+
sum([10, 20, 30, 40, 50])

0 commit comments

Comments
 (0)