config_inline_backend¶
- config_inline_backend(fmt=None)[source]¶
Set up the ipython inline backend display 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['inlineformat'] %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}
When the inline backend is inactive or unavailable, this has no effect. This function is called when you modify the
rc.inlineformat
property.- Parameters
fmt (
str
or sequence, default:rc.inlineformat
='retina'
) – The inline backend file format or a list thereof. Valid formats include'jpg'
,'png'
,'svg'
,'pdf'
, and'retina'
.
See also