diff --git a/IPython/core/displaypub.py b/IPython/core/displaypub.py index d769692..f651a2a 100644 --- a/IPython/core/displaypub.py +++ b/IPython/core/displaypub.py @@ -105,7 +105,7 @@ class DisplayPublisher(Configurable): handlers = {} if self.shell is not None: - handlers = self.shell.mime_renderers + handlers = getattr(self.shell, 'mime_renderers', {}) for mime, handler in handlers.items(): if mime in data: