Skip to content
Discussion options

You must be logged in to vote

No, I meant you have to specify the graphic device / backend, see https://matplotlib.org/stable/users/explain/backends.html.

This being said, this is mostly a Jupyter question rather than Quarto.

You could also export then display

```python
import matplotlib.pyplot as plt
from IPython.display import SVG

plt.plot([1, 2, 3], [1, 2, 3])
plt.savefig('myfigure.svg')
SVG(filename='myfigure.svg')
```

To note, when running a Quarto document using the Jupyter kernel, the document is translated as a Jupyter Notebook.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@PascalGitz
Comment options

@mcanouil
Comment options

mcanouil Aug 7, 2023
Collaborator

Answer selected by PascalGitz
@PascalGitz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants