Show More
@@ -25,6 +25,7 b' import glob' | |||||
25 |
|
25 | |||
26 | # From IPython |
|
26 | # From IPython | |
27 | from IPython.core.application import BaseIPythonApplication, base_aliases, base_flags |
|
27 | from IPython.core.application import BaseIPythonApplication, base_aliases, base_flags | |
|
28 | from IPython.core.profiledir import ProfileDir | |||
28 | from IPython.config import catch_config_error, Configurable |
|
29 | from IPython.config import catch_config_error, Configurable | |
29 | from IPython.utils.traitlets import ( |
|
30 | from IPython.utils.traitlets import ( | |
30 | Unicode, List, Instance, DottedObjectName, Type, CaselessStrEnum, |
|
31 | Unicode, List, Instance, DottedObjectName, Type, CaselessStrEnum, | |
@@ -87,12 +88,13 b' class NbConvertApp(BaseIPythonApplication):' | |||||
87 | return logging.INFO |
|
88 | return logging.INFO | |
88 |
|
89 | |||
89 | def _classes_default(self): |
|
90 | def _classes_default(self): | |
90 | classes = [NbConvertBase] |
|
91 | classes = [NbConvertBase, ProfileDir] | |
91 | for pkg in (exporters, preprocessors, writers): |
|
92 | for pkg in (exporters, preprocessors, writers): | |
92 | for name in dir(pkg): |
|
93 | for name in dir(pkg): | |
93 | cls = getattr(pkg, name) |
|
94 | cls = getattr(pkg, name) | |
94 | if isinstance(cls, type) and issubclass(cls, Configurable): |
|
95 | if isinstance(cls, type) and issubclass(cls, Configurable): | |
95 | classes.append(cls) |
|
96 | classes.append(cls) | |
|
97 | ||||
96 | return classes |
|
98 | return classes | |
97 |
|
99 | |||
98 | description = Unicode( |
|
100 | description = Unicode( |
General Comments 0
You need to be logged in to leave comments.
Login now