View or edit on GitHub
This page is synchronized from doc/Quarto.md. Last modified on 2026-01-22 21:12 CET by Florian Gollnow.
Please view or edit the original file there; changes should be reflected here after a midnight build (CET time),
or manually triggering it with a GitHub action (link).
Quarto
Here is some boilerplate for using Quarto with Python
---
title: "My analysis"
jupyter: python3
format: gfm
execute:
echo: false
---
Here is a plot:
```{python}
import plotly.io as pio
import plotly.express as px
pio.renderers.default = "png"
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
fig.show()
```
Save the file as my_analysis.qmd. Here are some useful commands:
# live preview
quarto preview my_analysis.qmd
# render to a markdown file
quarto render my_analysis.qmd
Here is some boilerplate for using Quarto with R
---
title: "ggplot2 demo"
author: "Norah Jones"
date: "5/22/2021"
format: gfm
execute:
echo: false
---
## Air Quality
@fig-airquality further explores the impact of temperature on ozone level.
```{r}
#| label: fig-airquality
#| fig-cap: "Temperature and ozone level."
#| warning: false
library(ggplot2)
ggplot(airquality, aes(Temp, Ozone)) +
geom_point() +
geom_smooth(method = "loess")
```