It occurred to me that a simple way to configure the inline backend, in particular to choose between standard PNG, retina (2x) PNG and SVG (and future PDF?) would be via the following syntax:
%matplotlib inline svg
or
%matplotlib inline --svg
I had a look at the code, but I don't know enough about how either the command-line argument parsers work, or how the configuration works, to implement this.
In this way, there would be no need to make the %config InlineBackend stuff so public.
There will probably never be inline PDF, because browsers don't deal with them well. There may be PDF in addition to whatever chosen interactive figure format, but 'inline pdf' doesn't make sense.
Activity
minrk commented on Aug 10, 2013
There will probably never be inline PDF, because browsers don't deal with them well. There may be PDF in addition to whatever chosen interactive figure format, but 'inline pdf' doesn't make sense.
flying-sheep commented on Jun 28, 2026
There should however be retina JPEG, retina WebP, …
I.e. we should separate scale from image format, see ipython/matplotlib-inline#5