Show matplotlib inline plot as svg instead of png
The inline matplotlib plots are shown as
png
and look blurry on my 4k monitor. Increasing the plots dpi only scales it up. Is it possible to display them as a svg
instead?
I already tried locally changing:
marimo/_output/mpl.py
to
but it still shows up as a png.GitHub
marimo/marimo/_output/mpl.py at main · marimo-team/marimo
A reactive notebook for Python — run reproducible experiments, execute as a script, deploy as an app, and version with git. - marimo-team/marimo
2 Replies
You can do this without needing to update marimo:
and of course, you can create a function to reuse this across multiple plots
Many thanks for putting this together!