Skip to content

Commit e753c32

Browse files
committed
Fix local import of select_figure_formats.
Fixes issue with setting InlineBackend.figure_format config value, reported on mailing list.
1 parent 7f81d00 commit e753c32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ def _config_changed(self, name, old, new):
7171

7272
def _update_figure_formatters(self):
7373
if self.shell is not None:
74+
from IPython.core.pylabtools import select_figure_formats
7475
select_figure_formats(self.shell, self.figure_formats, **self.print_figure_kwargs)
7576

7677
def _figure_formats_changed(self, name, old, new):
77-
from IPython.core.pylabtools import select_figure_formats
7878
if 'jpg' in new or 'jpeg' in new:
7979
if not pil_available():
8080
raise TraitError("Requires PIL/Pillow for JPG figures")

0 commit comments

Comments
 (0)