Skip to content

Commit e293ff7

Browse files
committed
messing with the execution area
1 parent 66eb64b commit e293ff7

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

notebooks/4-00-execution-nb.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,17 @@ pros and cons:
3131
- 1/1 when both are enabled, apparently the build-time execution is done first and the run buttons don't do anything
3232
- 1/0 if run at build-time, outputs are readily available without any manipulation
3333
- 0/1 but when interactivity is needed, it's cool to rely on the embedded kernel so that dynamic behaviour like widgets or nbautoeval can be used
34-
- 0/0 nothing is executed, hardly useful...
34+
- 0/0 nothing is executed, useful for a small number of static content pieces, having them ig overhead either
35+
36+
+++
37+
38+
## recommended setup
39+
40+
- build the project with the `--execute` flag to have outputs available at build-time
41+
- in some specific notebooks, turn off build-time execution and enable thebe +
42+
jupyterlite so that users can re-execute the notebook in the browser
43+
44+
see next notebook for an example of how to do that
3545

3646
+++
3747

@@ -55,7 +65,3 @@ in `myst.yml`, add
5565
```
5666
5767
that is to say `project.jupyter.lite = true`
58-
59-
## on a notebook basis
60-
61-
not sure if one can enable execution on a per-notebook basis

notebooks/4-01-pyodide-nb.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ language_info:
1111
name: python
1212
pygments_lexer: ipython3
1313
nbconvert_exporter: python
14+
skip_execution: true
15+
# lite: true
1416
---
1517

1618
# Pyodide kernel
1719

18-
![](https://raw.githubusercontent.com/pyodide/pyodide/master/docs/_static/img/pyodide-logo.png)
20+
```{image} https://raw.githubusercontent.com/pyodide/pyodide/master/docs/_static/img/pyodide-logo.png
21+
:align: right
22+
:width: 200px
23+
```
1924

2025
```{admonition} Only in jupyterlite
2126
:class: warning

notebooks/4-02-ipywidgets-nb.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ language_info:
1212
name: python
1313
pygments_lexer: ipython3
1414
nbconvert_exporter: python
15+
skip_execution: true
1516
---
1617

1718
(label-ipywidgets)=

notebooks/4-03-pandas-nb.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ language_info:
1111
name: python
1212
pygments_lexer: ipython3
1313
nbconvert_exporter: python
14+
skip_execution: true
1415
---
1516

1617
# Pandas DataFrame

0 commit comments

Comments
 (0)