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