Minimal repro: ```` --- format: html --- ```{python} # | lst-label: lst-1 # | lst-cap: A listing caption # | id: fig-1 # | fig-cap: A figure caption from matplotlib.pyplot import plot plot([1, 2, 3]) ``` ```` This works in `knitr` and should work in Jupyter as well.