On this page
The short answerUnderstand cells, displayed code, and frozen resultsWhy examples in Quarto projects break or go untestedReproduce frozen and live executionSee what the source scan collectsCreate a scan-ready copyTriage the resultRun both checks in CIMake the check repeatableWhere DocsAlive fitsThe sources we checkedFAQThe short answer
Use a Quarto render with freeze disabled in CI to test executable cells, and use a separately verified scan-ready copy to check display-only fences. DocsAlive 0.6.3 does not detect Quarto and never scans .qmd pages; even if a braced {python} cell is read as Markdown, it is skipped as not executable text. Cell outputs are not compared. The copy shown here exposes useful display-only examples to the engine, but it does not reproduce all Quarto execution behavior.
Quarto projects can contain two kinds of code that look similar in a document. A braced {python} cell is executable through Jupyter for Python. A plain Python fence is displayed but is not executed by Quarto. A render can therefore succeed while an example a reader copies is broken. Conversely, a source scanner may miss the executable document entirely if it does not collect the .qmd file suffix.
The examples below use Quarto 1.11.9 and engine 0.6.3. The project files are illustrative; the cell explicitly marked broken is introduced to demonstrate a failing render. The goal is to make each check’s coverage clear, not to treat a single green status as proof that every code path was exercised.
Understand cells, displayed code, and frozen results
Quarto cell options are written as comment lines beginning with #|. Execution options include eval, echo, and error. In particular, error: true includes errors in output and means errors do not halt processing. Review those options when deciding whether a successful render proves that a cell ran and succeeded under the intended policy.
Project-level freeze settings affect execution. With freeze: true, a project render does not re-render frozen computations. With freeze: auto, it re-renders only when the source changes. Frozen results live in _freeze, which Quarto recommends checking into version control. An incremental render of a single document or subdirectory always executes. Removing _freeze removes frozen output; Jupyter Cache also has a cache-refresh option.
Profiles provide a way to choose settings for a context such as CI. A file named for a profile is merged when that profile is activated with --profile or the corresponding environment variable. A CI profile can turn freeze off so a project render exercises the cells against current inputs.
| Quarto item | What Quarto does | What the engine does in 0.6.3 |
|---|---|---|
.qmd page |
Can render a computational document | Never collects it as a page |
| Braced Python cell | Runs through Jupyter when execution applies | If read directly as Markdown, treats its language as text and skips it |
| Plain Python fence | Displays it without executing it | Can execute it when it appears in a collected Markdown page |
| Cell options | Controls execution and presentation with option comments | The verified copy does not honor those options |
Freeze and _freeze |
Reuses frozen results according to project settings | Does not reproduce Quarto freeze behavior |
| Profiles | Merges activated profile configuration | Does not run the Quarto profile |
| Cell output | Appears in the rendered document according to Quarto settings | Does not compare cell output |
The engine scans .md, .mdx, and .markdown pages. It detects several other documentation frameworks, but not Quarto, so a Quarto project is treated as plain Markdown. If a top-level docs/ exists, the default plain-project scan uses it and adds a root README when present; otherwise it scans from the repository root.
Why examples in Quarto projects break or go untested
Quarto is unusual among documentation tools because it already runs code. That is a strength, and it creates a false sense of coverage. Teams see cells execute during a render and assume every example on the site was tested. Three patterns break that assumption.
The first is freezing. Freeze exists for good reasons: some documents need data sources, credentials or slow computations that not every contributor can reproduce. The cost is that frozen results can be weeks or months old. With automatic freezing, a render re-runs a document only when its source changes, so a new library release, a changed data file or a removed function does not trigger anything. The rendered page keeps showing output from a run that may no longer be possible.
The second is display-only code. Many Quarto pages mix executable cells with ordinary fences: shell commands to install a package, configuration snippets, or code the author does not want to run during the build. Quarto shows those fences exactly as written and never runs them. They are often the very blocks readers copy first, such as installation steps, and they get no execution at all.
The third is execution options. A cell can be set not to evaluate, to hide its code, or to include errors in the output instead of stopping the render. Each of those choices is reasonable on its own. Together they mean a successful render does not tell you which code ran, which code was shown, and which errors were allowed. Reviewing those options is part of deciding what a green CI render actually proves. Pages in other formats in the same project, such as notebooks, follow their own rules again.
Reproduce frozen and live execution
The illustrative project configuration sets a website project to automatic freezing.
project:
type: website
website:
title: "acme-client docs"
execute:
freeze: auto
The illustrative document below contains an executable cell that reads a project data file and a display-only fence with an outdated import. Quarto executes the first when execution applies. It displays the second without running it.
---
title: "Get started"
---
This cell runs when Quarto renders the page:
```{python}
from pathlib import Path
release = Path("data/version.txt").read_text().strip()
print(f"acme-client {release}")
```
This block is only displayed. Quarto does not run it:
```python
from collections import Mapping
settings: Mapping = {"retries": 3}
```
The illustrative notes.md page uses an ordinary Markdown suffix and contains a simple Python fence. It helps show the difference between what the engine collects and what Quarto can render.
---
title: "Notes"
---
A plain Markdown page in the same project:
```python
print(sum([1, 2, 3]))
```
Check the Jupyter setup and render the project. The probe used a Python virtual environment with Jupyter installed and pointed Quarto at it. Initially the data file contained version 2.4.1.
quarto check jupyter
quarto render
The recorded render showed that the cell executed and produced the page. It also wrote frozen execution results under _freeze.
Executing 'index.quarto_ipynb'
Cell 1/1: ''...Done
Output created: _site/index.html
Change the data file and render the project again. In the probe, the command succeeded without executing the cell, and the page still showed the earlier value from frozen results. Changing a dependency outside the source document did not, by itself, make this automatic-freeze project render refresh that cell.
echo "3.0.0" > data/version.txt
quarto render
The illustrative CI profile below disables freeze. It gives CI a clear execution policy while allowing the project’s normal profile to retain its chosen behavior.
execute:
freeze: false
Activate that profile for the project render. The probe executed the cell again and the page showed the updated value.
quarto render --profile ci
The following cell is broken on purpose. It uses an import unavailable in the tested Python runtime. Adding it to the document tests whether the CI render actually surfaces a cell failure.
```{python}
from collections import Mapping
```
With the CI profile, the render stopped with a nonzero status. The following recorded lines are the end of that render’s output.
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.13/collections/__init__.py)
WARN: Error encountered when rendering files
This failure is useful evidence only in its execution context. Check the active profile, runtime, dependencies, input files, and cell options before treating a render as a release gate. A cell configured to allow errors has different behavior from the deliberately failing cell above.
See what the source scan collects
The following command plans a scan from the project root. The results described after it are from the verified probe when run.
docsalive scan .
The engine identified the project as plain and collected one page, notes.md, with one block. That block passed when run. The .qmd document was never read, so neither its executable cell nor its display-only fence contributed to the result.
Direct extraction of the document showed a second limitation: the braced Python cell was read as language text and skipped as not executable. The engine does not compare cell outputs. For output comparison generally, it compares printed output only in pycon sessions. A separate output block is skipped.
The display-only fence illustrates a complementary gap in Quarto’s own render. The outdated import did not stop the site build because Quarto displayed that fence without executing it. If the page presents the block as code readers should run, test it separately with the same prerequisites and runtime the page promises.
For a related workflow involving notebook files and their execution context, see Jupyter notebook documentation testing.
Create a scan-ready copy
The illustrative script below was verified on the probe. It copies top-level .qmd and .md files to Markdown files and changes braced Python cells into Python fences. It stops if two input names would produce the same target name.
"""Copy top-level .qmd and .md pages into OUT as .md; {python} cells become python fences."""
import re
import sys
from pathlib import Path
src, out = Path(sys.argv[1]), Path(sys.argv[2])
cell = re.compile(r"^(`{3,})\{python\}\s*$", re.M)
out.mkdir(parents=True, exist_ok=True)
for page in sorted([*src.glob("*.qmd"), *src.glob("*.md")]):
target = out / page.with_suffix(".md").name
if target.exists():
sys.exit(f"name clash: {target}")
target.write_text(cell.sub(r"\1python", page.read_text()))
print(f"wrote {target}")
Generate the copy and scan it from the project root. The verified run collected two pages and three blocks. The copied cell passed when run from the project root, where its data file was available; the notes block passed; and the display-only block failed with an API-drift finding.
python3 scripts/qmd_scan_copy.py . scan-docs
docsalive scan . --docs-dir scan-docs
The script reported the two files it wrote.
wrote scan-docs/index.md
wrote scan-docs/notes.md
The copy is useful, but its boundaries are strict. It copies only top-level files, not subfolders. It converts only {python} cells; R, Julia, and other braced cells remain braced and are skipped. It does not honor cell options, so a cell marked eval: false would be run by the copied scan. It does not expand include shortcodes, and cell outputs are not compared.
Use Quarto with freeze off for authoritative cell execution in this workflow. Use the copy to expose display-only fences to supported checks and obtain triage categories. Because the copy also converts Python cells, review its findings in light of the differences above; do not assume it reproduces a Quarto render.
Triage the result
| Finding | Likely cause | What to do |
|---|---|---|
| Render shows an old value | Frozen results were reused after an input changed | Run the CI profile with freeze disabled and inspect the current inputs |
| Render succeeds but displayed code fails | A plain fence is display-only | Run the reader-facing example separately with documented setup |
.qmd page is missing from the scan |
The engine does not collect that suffix | Use a verified copy for supported fence checks and inspect its page list |
| Braced cell is skipped | The engine reads the info string as text | Test the cell with Quarto; understand the copy’s conversion limits |
| Copied cell runs unexpectedly | The copy does not honor eval options |
Use Quarto’s result for cell execution and adjust the separate check |
| Copied page differs from the rendered page | Includes or other Quarto behavior were not expanded | Compare representative pages and cover the missing behavior separately |
| A render succeeds despite an error | A cell may allow errors | Review cell options and the intended CI policy |
The scanner’s categories help prioritize investigation, but they do not replace knowledge of the execution environment. See finding categories and Python documentation testing for handling setup and runtime changes.
Run both checks in CI
Split the work along the line Quarto already draws. The render with freeze disabled is the authoritative check for executable cells: it runs them with the project's real configuration, its kernel and its data. The scan-ready copy is the check for display-only fences, which Quarto never runs. Running both in the same job gives coverage of both kinds of code without pretending either tool covers everything.
Activate the CI profile explicitly in the job rather than relying on an environment variable that someone may forget to set, and keep the default profile for local work so contributors still benefit from freezing. If some documents cannot run in CI because they need credentials or private data, list them, keep them frozen on purpose, and record that decision in the job summary instead of letting the whole project stay frozen.
Generate the copy right before the scan from the same checkout and keep it out of version control. Review the page list after each run, because the copy only reads top-level files, and note any non-Python cells it left braced. Block merges on a failed render and on likely docs bugs in the copy; report everything else for review. The GitHub Actions guide shows how a scan fits into a workflow.
Make the check repeatable
[ ] Check the Jupyter runtime and dependencies used by Quarto.
[ ] Render the project in CI with freeze disabled.
[ ] Review eval, echo, and error options on important cells.
[ ] Identify external data and files that cells read.
[ ] List display-only fences that readers are expected to run.
[ ] Generate a fresh scan-ready copy and inspect its page list.
[ ] Account for subfolders, non-Python cells, includes, and cell options.
[ ] Reproduce likely docs bugs with the documented reader setup.
[ ] Review skipped and unchecked blocks as coverage gaps.
Where DocsAlive fits
DocsAlive fits the display-example side of this split. It extracts eligible fences, plans supported checks, runs examples in isolated per-page containers, and classifies failures. Its scan-ready input must be verified against the project, and Quarto remains responsible for the cell render in this workflow. See the CLI reference and framework reference for the engine’s controls and supported detection.
In practice that means Quarto for cells, the copy for display-only fences, and the scan with triage for everything the copy exposes. Every plan runs the scan on a schedule, and the Team plan and above add pull request checks and draft fix pull requests; pricing lists what each plan includes. To see a real report on a public repository you maintain, use the health check.
For other static-site projects, compare the publication and templating boundaries in the Eleventy guide and Zola guide. The documentation testing checklist can help record the checks that remain outside the scanner.
The sources we checked
These sources were read on November 14, 2026. Engine behavior was checked against engine 0.6.3 on the same day.
| Source | What it covers |
|---|---|
| Quarto Python computations | Python cells and Jupyter |
| Quarto execution options | Cell execution and presentation options |
| Quarto project execution | Freeze and project renders |
| Quarto profiles | Profile configuration and activation |
| Quarto Jupyter cell reference | Jupyter cell options |
| Python 3.10 changes | Removed compatibility aliases |
FAQ
Does DocsAlive test Quarto cells in 0.6.3?
No. It never scans .qmd pages, and a braced Python cell read directly as Markdown is skipped as not executable text. It does not compare cell outputs. Use a Quarto render with freeze disabled for the cell check.
Why can a successful render contain broken code?
Quarto displays a plain code fence without executing it. Test examples readers are expected to run separately from executable cells.
Why did a data change not appear in the rendered page?
With automatic freeze, the project render can reuse frozen results when the source document has not changed. A CI render with freeze disabled exercises the cell against current inputs.
Does the scan-copy script reproduce Quarto execution?
No. It copies top-level files and converts Python cells, but it does not honor cell options, expand include shortcodes, handle other braced languages, or compare cell outputs.
Can a successful render still contain a cell error?
Yes. An error option can include errors in the output and allow processing to continue. Review cell options when defining what CI must enforce.
What should be reviewed after a scan?
Check the collected pages, skipped blocks, setup, and findings against the rendered documentation. Reproduce suspected defects with the runtime and prerequisites readers are given.




