Closed joelostblom closed 1 year ago
I think you can do this by enabling the regular Altair "png" renderer:
import altair as alt
alt.renderers.enable("png", scale_factor=2)
(at least this is currently working for me locally on altair master)
Ah yes of course, I mixed up the png
renderer with the mimebundle
renderer and didn't realize it actually uses vl-convert
under the hood, thank you!
I am currently trying to produce pdf latex output via jupyter book and running into multiple issues with getting Altair charts to show up since there is no javascript front end. With altair saver I could use some like
alt.renderers.enable('altair_saver', fmts=['png'], embed_options={'scaleFactor': '4'})
(from https://github.com/altair-viz/altair_saver/issues/75#issuecomment-1031765087), would it be possible to usevlconvert
in a similar way?I naively tried this which didn't work: