diff --git a/IPython/nbconvert/transformers/__init__.py b/IPython/nbconvert/transformers/__init__.py index 2e5f782..e47b24c 100755 --- a/IPython/nbconvert/transformers/__init__.py +++ b/IPython/nbconvert/transformers/__init__.py @@ -1,5 +1,5 @@ # Class base Transformers -from .base import ConfigurableTransformer +from .base import Transformer from .convertfigures import ConvertFiguresTransformer from .svg2pdf import SVG2PDFTransformer from .extractfigure import ExtractFigureTransformer diff --git a/IPython/nbconvert/transformers/base.py b/IPython/nbconvert/transformers/base.py index 1fff970..825808e 100755 --- a/IPython/nbconvert/transformers/base.py +++ b/IPython/nbconvert/transformers/base.py @@ -23,7 +23,7 @@ from IPython.utils.traitlets import Bool # Classes and Functions #----------------------------------------------------------------------------- -class ConfigurableTransformer(NbConvertBase): +class Transformer(NbConvertBase): """ A configurable transformer Inherit from this class if you wish to have configurability for your @@ -53,7 +53,7 @@ class ConfigurableTransformer(NbConvertBase): Additional arguments """ - super(ConfigurableTransformer, self).__init__(**kw) + super(Transformer, self).__init__(**kw) def __call__(self, nb, resources): diff --git a/IPython/nbconvert/transformers/convertfigures.py b/IPython/nbconvert/transformers/convertfigures.py index 7587391..354f456 100644 --- a/IPython/nbconvert/transformers/convertfigures.py +++ b/IPython/nbconvert/transformers/convertfigures.py @@ -13,14 +13,14 @@ one format to another. # Imports #----------------------------------------------------------------------------- -from .base import ConfigurableTransformer +from .base import Transformer from IPython.utils.traitlets import Unicode #----------------------------------------------------------------------------- # Classes #----------------------------------------------------------------------------- -class ConvertFiguresTransformer(ConfigurableTransformer): +class ConvertFiguresTransformer(Transformer): """ Converts all of the outputs in a notebook from one format to another. """ diff --git a/IPython/nbconvert/transformers/csshtmlheader.py b/IPython/nbconvert/transformers/csshtmlheader.py index 5c65559..25dc511 100755 --- a/IPython/nbconvert/transformers/csshtmlheader.py +++ b/IPython/nbconvert/transformers/csshtmlheader.py @@ -19,7 +19,7 @@ from pygments.formatters import HtmlFormatter from IPython.utils import path -from .base import ConfigurableTransformer +from .base import Transformer from IPython.utils.traitlets import Unicode @@ -27,7 +27,7 @@ from IPython.utils.traitlets import Unicode # Classes and functions #----------------------------------------------------------------------------- -class CSSHTMLHeaderTransformer(ConfigurableTransformer): +class CSSHTMLHeaderTransformer(Transformer): """ Transformer used to pre-process notebook for HTML output. Adds IPython notebook front-end CSS and Pygments CSS to HTML output. diff --git a/IPython/nbconvert/transformers/extractfigure.py b/IPython/nbconvert/transformers/extractfigure.py index 4ff94b9..1c28104 100755 --- a/IPython/nbconvert/transformers/extractfigure.py +++ b/IPython/nbconvert/transformers/extractfigure.py @@ -15,13 +15,13 @@ notebook file. The extracted figures are returned in the 'resources' dictionary import sys from IPython.utils.traitlets import Unicode -from .base import ConfigurableTransformer +from .base import Transformer #----------------------------------------------------------------------------- # Classes #----------------------------------------------------------------------------- -class ExtractFigureTransformer(ConfigurableTransformer): +class ExtractFigureTransformer(Transformer): """ Extracts all of the figures from the notebook file. The extracted figures are returned in the 'resources' dictionary. diff --git a/IPython/nbconvert/transformers/latex.py b/IPython/nbconvert/transformers/latex.py index 22cc203..be1f5ac 100755 --- a/IPython/nbconvert/transformers/latex.py +++ b/IPython/nbconvert/transformers/latex.py @@ -17,14 +17,14 @@ from __future__ import print_function, absolute_import # Our own imports # Needed to override transformer -from .base import (ConfigurableTransformer) +from .base import (Transformer) from IPython.nbconvert import filters #----------------------------------------------------------------------------- # Classes #----------------------------------------------------------------------------- -class LatexTransformer(ConfigurableTransformer): +class LatexTransformer(Transformer): """ Converter for latex destined documents. """ diff --git a/IPython/nbconvert/transformers/revealhelp.py b/IPython/nbconvert/transformers/revealhelp.py index 8bdc65c..96d69f1 100755 --- a/IPython/nbconvert/transformers/revealhelp.py +++ b/IPython/nbconvert/transformers/revealhelp.py @@ -12,14 +12,14 @@ # Imports #----------------------------------------------------------------------------- -from .base import ConfigurableTransformer +from .base import Transformer from IPython.utils.traitlets import Unicode #----------------------------------------------------------------------------- # Classes and functions #----------------------------------------------------------------------------- -class RevealHelpTransformer(ConfigurableTransformer): +class RevealHelpTransformer(Transformer): url_prefix = Unicode('//cdn.jsdelivr.net/reveal.js/2.4.0', config=True, diff --git a/IPython/nbconvert/transformers/sphinx.py b/IPython/nbconvert/transformers/sphinx.py index 935ec12..8c4fa7c 100755 --- a/IPython/nbconvert/transformers/sphinx.py +++ b/IPython/nbconvert/transformers/sphinx.py @@ -33,7 +33,7 @@ from pygments.formatters import LatexFormatter from IPython.utils.traitlets import Unicode, Bool # Needed to override transformer -from .base import (ConfigurableTransformer) +from .base import (Transformer) from IPython.nbconvert.utils import console @@ -41,7 +41,7 @@ from IPython.nbconvert.utils import console # Classes and functions #----------------------------------------------------------------------------- -class SphinxTransformer(ConfigurableTransformer): +class SphinxTransformer(Transformer): """ Sphinx utility transformer.