diff --git a/IPython/nbconvert/transformers/base.py b/IPython/nbconvert/transformers/base.py index 2e5a176..e288e7e 100755 --- a/IPython/nbconvert/transformers/base.py +++ b/IPython/nbconvert/transformers/base.py @@ -35,7 +35,9 @@ class ConfigurableTransformer(GlobalConfigurable): or __call__ if you prefer your own logic. See corresponding docstring for informations. """ - def __init__(self, config=None, **kw): + enabled = Bool(False, config=True) + + def __init__(self, **kw): """ Public constructor @@ -47,7 +49,7 @@ class ConfigurableTransformer(GlobalConfigurable): Additional arguments """ - super(ConfigurableTransformer, self).__init__(config=config, **kw) + super(ConfigurableTransformer, self).__init__(**kw) def __call__(self, nb, resources): diff --git a/IPython/nbconvert/utils/config.py b/IPython/nbconvert/utils/config.py index 70414d1..eb0edac 100644 --- a/IPython/nbconvert/utils/config.py +++ b/IPython/nbconvert/utils/config.py @@ -33,5 +33,5 @@ class GlobalConfigurable(Configurable): """ ) - def __init__(self, config=None, **kw): - super(GlobalConfigurable, self).__init__( config=config, **kw) + def __init__(self, **kw): + super(GlobalConfigurable, self).__init__(**kw)