From 514c5b62348077cbde35614f43ce771c856dfd5e 2014-10-03 23:03:02 From: MinRK Date: 2014-10-03 23:03:02 Subject: [PATCH] allow PDFFormatter to return bytes --- diff --git a/IPython/core/formatters.py b/IPython/core/formatters.py index ec96192..b88721e 100644 --- a/IPython/core/formatters.py +++ b/IPython/core/formatters.py @@ -837,6 +837,8 @@ class PDFFormatter(BaseFormatter): print_method = ObjectName('_repr_pdf_') + _return_type = (bytes, unicode_type) + FormatterABC.register(BaseFormatter) FormatterABC.register(PlainTextFormatter)