for i in range(5):
print(i)
0
1
2
3
4
Tim Child
February 12, 2025
March 27, 2025
Quarto makes it easy to include executable code within documents. For example:
Including
Produces:
The output of the code is executed and included in the document.
The {}
syntax around the python
is important for quarto to know to execute the code rather than only display the markdown for it.
Use {{python}}
to show {python}
in the rendered output without actually executing it as code.
See the Quarto documentation for more examples.
For example, including figures is a really nice feature.
And it work with plotly too!