Show More
@@ -347,10 +347,11 b' class Exporter(Configurable):' | |||||
347 | # flavor (if available). The flavor can be set on the traitlet |
|
347 | # flavor (if available). The flavor can be set on the traitlet | |
348 | # or passed in as a kw arg. The flavor specified in kw overrides |
|
348 | # or passed in as a kw arg. The flavor specified in kw overrides | |
349 | # what is set in the flavor traitlet. |
|
349 | # what is set in the flavor traitlet. | |
|
350 | module_name = self.__module__.split('.')[-1] | |||
350 | if self.flavor or 'flavor' in kw: |
|
351 | if self.flavor or 'flavor' in kw: | |
351 |
self.template_file = |
|
352 | self.template_file = module_name + '_' + kw.get('flavor', self.flavor) | |
352 | else: |
|
353 | else: | |
353 |
self.template_file = |
|
354 | self.template_file = module_name | |
354 |
|
355 | |||
355 |
|
356 | |||
356 | def _init_environment(self, extra_loaders=None): |
|
357 | def _init_environment(self, extra_loaders=None): |
@@ -17,6 +17,7 b' Exporter that exports Basic HTML.' | |||||
17 | from IPython.utils.traitlets import Unicode, List |
|
17 | from IPython.utils.traitlets import Unicode, List | |
18 |
|
18 | |||
19 | from IPython.nbconvert import transformers |
|
19 | from IPython.nbconvert import transformers | |
|
20 | from IPython.config import Config | |||
20 |
|
21 | |||
21 | from .exporter import Exporter |
|
22 | from .exporter import Exporter | |
22 |
|
23 | |||
@@ -50,5 +51,5 b' class HTMLExporter(Exporter):' | |||||
50 | 'enabled':True, |
|
51 | 'enabled':True, | |
51 | }, |
|
52 | }, | |
52 | }) |
|
53 | }) | |
53 |
c.merge(super( |
|
54 | c.merge(super(HTMLExporter,self).default_config) | |
54 | return c |
|
55 | return c |
General Comments 0
You need to be logged in to leave comments.
Login now