##// END OF EJS Templates
remove redundant check for self.shell is None
MinRK -
Show More
@@ -78,10 +78,7 b' class InlineBackend(InlineBackendConfig):'
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")
81 if self.shell is None:
81 self._update_figure_formatters()
82 return
83 else:
84 self._update_figure_formatters()
85
82
86 figure_format = Unicode(config=True, help="""The figure format to enable (deprecated
83 figure_format = Unicode(config=True, help="""The figure format to enable (deprecated
87 use `figure_formats` instead)""")
84 use `figure_formats` instead)""")
General Comments 0
You need to be logged in to leave comments. Login now