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)