From 3294e4a1f158f110cbda0d4af4be0091f20cecf4 2013-08-30 00:37:51 From: MinRK Date: 2013-08-30 00:37:51 Subject: [PATCH] add missing ProfileDir to nbconvertapp.classes --- diff --git a/IPython/nbconvert/nbconvertapp.py b/IPython/nbconvert/nbconvertapp.py index e01eee3..08bc0b8 100755 --- a/IPython/nbconvert/nbconvertapp.py +++ b/IPython/nbconvert/nbconvertapp.py @@ -25,6 +25,7 @@ import glob # From IPython from IPython.core.application import BaseIPythonApplication, base_aliases, base_flags +from IPython.core.profiledir import ProfileDir from IPython.config import catch_config_error, Configurable from IPython.utils.traitlets import ( Unicode, List, Instance, DottedObjectName, Type, CaselessStrEnum, @@ -87,12 +88,13 @@ class NbConvertApp(BaseIPythonApplication): return logging.INFO def _classes_default(self): - classes = [NbConvertBase] + classes = [NbConvertBase, ProfileDir] for pkg in (exporters, preprocessors, writers): for name in dir(pkg): cls = getattr(pkg, name) if isinstance(cls, type) and issubclass(cls, Configurable): classes.append(cls) + return classes description = Unicode(