How do I specify the file path for figures rendered using Python? #12056
-
| DescriptionFigures rendered using R can have their file path specified using: What is the equivalent for figures rendered using Python? | 
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
| This was answered for R in #2767. | 
Beta Was this translation helpful? Give feedback.
-
| It would depends but most Python libraries rely on matplotlib so tweaking the default configuration might work:  | 
Beta Was this translation helpful? Give feedback.
-
| It looks like  FWIW, here's a simplification of the Python code, including a figure, that I'm rendering in the Quarto document:  | 
Beta Was this translation helpful? Give feedback.
Jupyter/IPYthon does not offer this as far as I know. (images are base64 encoded inside the notebooks)
For
knitr, the option comes directly from it, not from Quarto.For now, Quarto sets some default using options such as
fig-height, etc.quarto-cli/src/resources/jupyter/lang/python/setup.py
Lines 20 to 29 in b822c3f
Unless explicitly saving the image…