From 90492133b96f054dc5e5e2b4c460817461ace8f8 2013-06-16 11:23:23 From: Matthias BUSSONNIER Date: 2013-06-16 11:23:23 Subject: [PATCH] globalize display_data_priority --- diff --git a/nbconvert/exporters/latex.py b/nbconvert/exporters/latex.py index ef77ad0..624bd74 100755 --- a/nbconvert/exporters/latex.py +++ b/nbconvert/exporters/latex.py @@ -103,7 +103,6 @@ class LatexExporter(exporter.Exporter): 'ExtractFigureTransformer': { 'enabled':True, 'extra_ext_map':{'svg':'pdf'}, - } }) c.merge(super(LatexExporter,self).default_config) diff --git a/nbconvert/filters/datatypefilter.py b/nbconvert/filters/datatypefilter.py index f4fff8f..88ce2d1 100755 --- a/nbconvert/filters/datatypefilter.py +++ b/nbconvert/filters/datatypefilter.py @@ -22,8 +22,6 @@ from ..utils.config import GlobalConfigurable class DataTypeFilter(GlobalConfigurable): """ Returns the preferred display format """ - display_data_priority = ['html', 'pdf', 'svg', 'latex', 'png', 'jpg', 'jpeg' , 'text'] - def __call__(self, output): """ Return the first available format in the priority """ diff --git a/nbconvert/transformers/extractfigure.py b/nbconvert/transformers/extractfigure.py index 4f9c3d7..cfa4e43 100755 --- a/nbconvert/transformers/extractfigure.py +++ b/nbconvert/transformers/extractfigure.py @@ -44,8 +44,6 @@ class ExtractFigureTransformer(ActivatableTransformer): key_format_map = Dict({}, config=True,) figure_name_format_map = Dict({}, config=True) - #display_data_priority = List(['svg', 'png', 'latex', 'jpg', 'jpeg','text']) - #TODO: Change this to .format {} syntax default_key_template = Unicode('_fig_{index:02d}.{ext}', config=True)