quarto-dev / quarto-dev/quarto-cli
Cross-Reference Div Syntax Python example does not work
Open
@cderv is already working on this.
Since Nov 20, 2025.
bug
embed
manuscript
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
Cross-Reference Div Syntax Python example does not work
Steps to reproduce
[tmp.qmd]
::: {#fig-line-plot}
```{python}
import matplotlib.pyplot as plt
plt.plot([1,23,2,4])
plt.show()
```
A line plot
:::
quarto preview tmp.qmd
Actual behavior
Starting python3 kernel...Done
Executing 'tmp.quarto_ipynb'
Cell 1/1: ''...Done
Rendering qmd embeds [tmp.qmd]
Error running filter /opt/quarto/share/filters/main.lua:
/opt/quarto/share/filters/main.lua:22970: attempt to index a nil value (field 'content')
stack traceback:
/opt/quarto/share/filters/main.lua:1213: in local 'filter_fn'
/opt/quarto/share/filters/main.lua:653: in function </opt/quarto/share/filters/main.lua:643>
(...tail calls...)
...uarto/share/pandoc/datadir/../../filters/modules/jog.lua:34: in upvalue 'run_filter_function'
...uarto/share/pandoc/datadir/../../filters/modules/jog.lua:223: in function <...uarto/share/pandoc/datadir/../../filters/modules/jog.lua:202>
(...tail calls...)
[C]: in function 'tmap'
...uarto/share/pandoc/datadir/../../filters/modules/jog.lua:125: in upvalue 'recurse'
...uarto/share/pandoc/datadir/../../filters/modules/jog.lua:222: in local 'jogger'
...uarto/share/pandoc/datadir/../../filters/modules/jog.lua:98: in upvalue 'recurse'
...uarto/share/pandoc/datadir/../../filters/modules/jog.lua:222: in function <...uarto/share/pandoc/datadir/../../filters/modules/jog.lua:202>
(...tail calls...)
[C]: in function 'tmap'
...uarto/share/pandoc/datadir/../../filters/modules/jog.lua:125: in upvalue 'recurse'
...uarto/share/pandoc/datadir/../../filters/modules/jog.lua:222: in local 'jogger'
...uarto/share/pandoc/datadir/../../filters/modules/jog.lua:171: in upvalue 'recurse'
...uarto/share/pandoc/datadir/../../filters/modules/jog.lua:222: in function <...uarto/share/pandoc/datadir/../../filters/modules/jog.lua:202>
(...tail calls...)
/opt/quarto/share/filters/main.lua:572: in function </opt/quarto/share/filters/main.lua:550>
(...tail calls...)
/opt/quarto/share/filters/main.lua:1314: in local 'callback'
/opt/quarto/share/filters/main.lua:1332: in upvalue 'run_emulated_filter_chain'
/opt/quarto/share/filters/main.lua:1368: in function </opt/quarto/share/filters/main.lua:1365>
Expected behavior
A figure should be rendered
Your environment
- IDE: VS Code, though this example was using just the CLI
- OS: Ubuntu on WSL
Quarto check output
Quarto 1.8.26
[✓] Checking environment information...
Quarto cache location: /home/hafarooki/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.6.3: OK
Dart Sass version 1.87.0: OK
Deno version 2.3.1: OK
Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.8.26
Path: /opt/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /usr/local/texlive/2025/bin/x86_64-linux
Version: 2025
[✓] Checking Chrome Headless....................OK
Chrome: (not detected)
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.13.8
Path: /home/hafarooki/projects/data-analysis/venv/bin/python
Jupyter: 5.9.1
Kernels: python3, epthermo_kernel, pymfrenv, venv_kernel
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........(None)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.