Replies: 1 comment 3 replies
-
Closed as my colleague raised this issue instead so that it has more visibility. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Possibly not really a Quarto problem, but thought it'd be worth writing up anyway at the very least for some visibility.
Repro environment and steps:
Quarto version: 1.5.57 (installed using pip install quarto-cli)
Python version: 3.12.5
Sample repro.qmd
This QMD works fine when rendering it via the cli i.e.
quarto render repro.qmd
.However, when using a python wrapper script to call the cli, the figure isn't displayed, but instead just displays the text "<Axes: >"
The different behaviour when running it directly via the CLI vs invoking from a python really stumped me for a bit, but it seems to be problem with the jupyter output being incorrect when quarto is invoked as a python subprocess, as it outputs this intermediate md
I finally figured a way to get it to display correctly with some help from a colleague.
Had to explicitly display the figure using the qmd below, but wondering if anyone may have more colour about what could be causing this difference in behaviour?
Perhaps the Python kernel being spawned for Jupyter execution when Quarto is running as a python subprocess is different?
Beta Was this translation helpful? Give feedback.
All reactions