Show More
@@ -154,14 +154,14 b' class NbConvertApp(BaseIPythonApplication):' | |||||
154 | writer_class = DottedObjectName('FilesWriter', config=True, |
|
154 | writer_class = DottedObjectName('FilesWriter', config=True, | |
155 | help="""Writer class used to write the |
|
155 | help="""Writer class used to write the | |
156 | results of the conversion""") |
|
156 | results of the conversion""") | |
157 |
writer_aliases = {' |
|
157 | writer_aliases = {'fileswriter': 'IPython.nbconvert.writers.files.FilesWriter', | |
158 |
' |
|
158 | 'debugwriter': 'IPython.nbconvert.writers.debug.DebugWriter', | |
159 |
' |
|
159 | 'stdoutwriter': 'IPython.nbconvert.writers.stdout.StdoutWriter'} | |
160 | writer_factory = Type() |
|
160 | writer_factory = Type() | |
161 |
|
161 | |||
162 | def _writer_class_changed(self, name, old, new): |
|
162 | def _writer_class_changed(self, name, old, new): | |
163 | if new in self.writer_aliases: |
|
163 | if new.lower() in self.writer_aliases: | |
164 | new = self.writer_aliases[new] |
|
164 | new = self.writer_aliases[new.lower()] | |
165 | self.writer_factory = import_item(new) |
|
165 | self.writer_factory = import_item(new) | |
166 |
|
166 | |||
167 | # Post-processor specific variables |
|
167 | # Post-processor specific variables | |
@@ -172,13 +172,13 b' class NbConvertApp(BaseIPythonApplication):' | |||||
172 | post_processor_class = DottedOrNone(config=True, |
|
172 | post_processor_class = DottedOrNone(config=True, | |
173 | help="""PostProcessor class used to write the |
|
173 | help="""PostProcessor class used to write the | |
174 | results of the conversion""") |
|
174 | results of the conversion""") | |
175 |
post_processor_aliases = {' |
|
175 | post_processor_aliases = {'pdf': 'IPython.nbconvert.post_processors.pdf.PDFPostProcessor', | |
176 | 'serve': 'IPython.nbconvert.post_processors.serve.ServePostProcessor'} |
|
176 | 'serve': 'IPython.nbconvert.post_processors.serve.ServePostProcessor'} | |
177 | post_processor_factory = Type() |
|
177 | post_processor_factory = Type() | |
178 |
|
178 | |||
179 | def _post_processor_class_changed(self, name, old, new): |
|
179 | def _post_processor_class_changed(self, name, old, new): | |
180 | if new in self.post_processor_aliases: |
|
180 | if new.lower() in self.post_processor_aliases: | |
181 | new = self.post_processor_aliases[new] |
|
181 | new = self.post_processor_aliases[new.lower()] | |
182 | if new: |
|
182 | if new: | |
183 | self.post_processor_factory = import_item(new) |
|
183 | self.post_processor_factory = import_item(new) | |
184 |
|
184 |
General Comments 0
You need to be logged in to leave comments.
Login now