Make your SciPy presentation in Quarto

Isabella Velásquez
Charlotte Wickham

2026-07-14

Slides are just Markdown and code:

  • Write your narrative in Markdown
  • Weave in Python code and its output
  • Render it all to one reproducible file

Features for showing code

Add Python code cells

from plotnine import *
from plotnine.data import anscombe_quartet

Code output is included

anscombe_quartet.head()
dataset x y
0 I 10 8.04
1 I 8 6.95
2 I 13 7.58
3 I 9 8.81
4 I 11 8.33

You can show code without running it

%view opens the data in Positron’s Data Explorer:

%view anscombe_quartet

Highlight lines as you talk

(
    anscombe_quartet
    .groupby("dataset")[["x", "y"]]
    .apply(lambda g: g["x"].corr(g["y"]))
    .round(2).to_frame("correlation")
)
correlation
dataset
I 0.82
II 0.82
III 0.82
IV 0.82