##// END OF EJS Templates
Fix local import of select_figure_formats....
Thomas Kluyver -
Show More
@@ -71,10 +71,10 b' class InlineBackend(InlineBackendConfig):'
71
71
72 def _update_figure_formatters(self):
72 def _update_figure_formatters(self):
73 if self.shell is not None:
73 if self.shell is not None:
74 from IPython.core.pylabtools import select_figure_formats
74 select_figure_formats(self.shell, self.figure_formats, **self.print_figure_kwargs)
75 select_figure_formats(self.shell, self.figure_formats, **self.print_figure_kwargs)
75
76
76 def _figure_formats_changed(self, name, old, new):
77 def _figure_formats_changed(self, name, old, new):
77 from IPython.core.pylabtools import select_figure_formats
78 if 'jpg' in new or 'jpeg' in new:
78 if 'jpg' in new or 'jpeg' in new:
79 if not pil_available():
79 if not pil_available():
80 raise TraitError("Requires PIL/Pillow for JPG figures")
80 raise TraitError("Requires PIL/Pillow for JPG figures")
General Comments 0
You need to be logged in to leave comments. Login now