From the course: Data Science Reporting with Quarto for Python

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

YAML, Markdown, and Python

YAML, Markdown, and Python

- [Instructor] All Quarto documents contain at least three ingredients. Let's break down the mandatory three ingredients in Quarto by taking a look at this seemingly complicated document. The top of every Quarto document is the YAML header. We then have our Python code chunks, and finally the text. And most of the content in Quarto is written with Markdown. Let's break these downin turn. The YAML header is mandatory and appears at the top of the document between two pairs of three dashes. It controls what type of output is rendered by the Quarto document, how that output is styled, and finally, it can be used to affect how code is evaluated during rendering. Let's see that in action in GitHub code spaces. So we've got a quarto-ingredients.qmd file open from the O3_02b folder. And what we're going to do is render this with our keyboard circuit command shift K. Pressing that keyboard shortcut spins up Quarto. It's going to render our document together, and when it's finished, it's going…

Contents