From 84c967aee0eaa00f5313aa785b4ac69cb0f7255e 2013-06-08 14:09:38 From: Bussonnier Matthias Date: 2013-06-08 14:09:38 Subject: [PATCH] fix non-existing directory --- diff --git a/nbconvert/exporters/sphinx_howto.py b/nbconvert/exporters/sphinx_howto.py index f3a9fec..f297de1 100644 --- a/nbconvert/exporters/sphinx_howto.py +++ b/nbconvert/exporters/sphinx_howto.py @@ -15,6 +15,7 @@ formatted for use with PDFLatex. #----------------------------------------------------------------------------- from IPython.utils.traitlets import Unicode +from IPython.config import Config # local import import latex @@ -34,7 +35,25 @@ class SphinxHowtoExporter(latex.LatexExporter): template_file = Unicode( 'sphinx_howto', config=True, help="Name of the template file to use") - + + _default_config = Config({ + 'SphinxTransformer': {'enabled':True} + }) + + def __init__(self, transformers=None, filters=None, config=None, **kw): + + c = self.default_config + if config: + c.merge(config) + + super(SphinxHowtoExporter, self).__init__( + transformers=transformers, + filters=filters, + config=c, + **kw) + + + def _register_transformers(self): #Register the transformers of the base class.