From 5ada0da90d1242a548ac217ffb0ea1623ef1a688 2015-06-02 18:12:45 From: Thomas Kluyver Date: 2015-06-02 18:12:45 Subject: [PATCH] Remove pdf from display order for HTML export Backport of jupyter/nbconvert#5 Fixes issues with graphs in R kernel notebooks (see IRkernel/IRkernel#145 ) --- diff --git a/IPython/nbconvert/exporters/html.py b/IPython/nbconvert/exporters/html.py index f306cad..8f2658b 100644 --- a/IPython/nbconvert/exporters/html.py +++ b/IPython/nbconvert/exporters/html.py @@ -37,7 +37,15 @@ class HTMLExporter(TemplateExporter): def default_config(self): c = Config({ 'NbConvertBase': { - 'display_data_priority' : ['application/javascript', 'text/html', 'text/markdown', 'application/pdf', 'image/svg+xml', 'text/latex', 'image/png', 'image/jpeg', 'text/plain'] + 'display_data_priority' : ['application/javascript', + 'text/html', + 'text/markdown', + 'image/svg+xml', + 'text/latex', + 'image/png', + 'image/jpeg', + 'text/plain' + ] }, 'CSSHTMLHeaderPreprocessor':{ 'enabled':True