Control code visibility in Quarto
Show, hide, or fold executable source without changing table output
Presentation-only controls
This Python-only tutorial demonstrates Quarto presentation controls, not a new TraceCite transformation. The page locally disables the project-wide folding default so the first executable cell is visibly shown. Each cell still emits ordinary TraceCite-compatible Markdown with a stable table identifier.
Visible source
This cell uses the normal default presentation. Because this page sets format.html.code-fold: false, its executable source is visible in the HTML.
Folded source
The final cell opts back into folding with #| code-fold: true and labels the closed control with #| code-summary: "Show the table-generating code".
What remains unchanged
All three calls emit equivalent TraceCite-compatible Markdown. Code visibility options do not change the emitted Markdown, TraceCite metadata, normalisation, or retrieval records.