Skip to content

Configuration to save output in notebooks #2561

Answered by joelostblom
jimmywan asked this question in Q&A
Discussion options

You must be logged in to vote

You can use alt.renderers.enable('mimetype') as mentioned on this page:

(default prior to Altair 4.0): Output a vega-lite specific mimetype that can be interpreted by appropriate frontend extensions to display charts. This also outputs a PNG representation of the plot, which is useful to view plots offline or on platforms that don’t support rendering vegaspecs, such as GitHub.

Replies: 1 comment 3 replies

Comment options

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

@jakevdp
Comment options

@jimmywan
Comment options

Answer selected by jimmywan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants