config_inline_backend

config_inline_backend(fmt=None)[source]

Set up the ipython inline backend format and ensure that inline figures always look the same as saved figures. This runs the following ipython magic commands:

%config InlineBackend.figure_formats = rc['inlinefmt']
%config InlineBackend.rc = {}  # never override rc settings
%config InlineBackend.close_figures = True  # cells start with no active figures
%config InlineBackend.print_figure_kwargs = {'bbox_inches': None}  # never override rc settings

When the inline backend is inactive or unavailable, this has no effect. This function is called when you modify the rc.inlinefmt property.

Parameters

fmt (str or list of str, optional) – The inline backend file format(s). Default is rc.inlinefmt = 'retina'. Valid formats include 'jpg', 'png', 'svg', 'pdf', and 'retina'.