diff --git a/IPython/lib/pylabtools.py b/IPython/lib/pylabtools.py index 8c035cb..7fd3060 100644 --- a/IPython/lib/pylabtools.py +++ b/IPython/lib/pylabtools.py @@ -106,8 +106,6 @@ def print_figure(fig, fmt='png'): finally: fig.set_facecolor(fc) fig.set_edgecolor(ec) - if fmt == 'png': - data = data.encode('base64') return data diff --git a/IPython/zmq/pylab/backend_inline.py b/IPython/zmq/pylab/backend_inline.py index 7944ac1..7e4b2c5 100644 --- a/IPython/zmq/pylab/backend_inline.py +++ b/IPython/zmq/pylab/backend_inline.py @@ -42,7 +42,7 @@ class InlineBackendConfig(SingletonConfigurable): figure_format = CaselessStrEnum(['svg', 'png'], default_value='png', config=True, help="The image format for figures with the inline backend.") - def _format_changed(self, name, old, new): + def _figure_format_changed(self, name, old, new): if self.shell is None: return else: