Show More
@@ -85,6 +85,7 b' __all__ = [' | |||
|
85 | 85 | class ExporterNameError(NameError): |
|
86 | 86 | pass |
|
87 | 87 | |
|
88 | _exporters = {} | |
|
88 | 89 | |
|
89 | 90 | @DocDecorator |
|
90 | 91 | def export(exporter, nb, **kw): |
@@ -111,7 +112,9 b' def export(exporter, nb, **kw):' | |||
|
111 | 112 | if isinstance(exporter, Exporter): |
|
112 | 113 | exporter_instance = exporter |
|
113 | 114 | else: |
|
114 |
|
|
|
115 | if exporter not in _exporters: | |
|
116 | _exporters[exporter] = exporter(**kw) | |
|
117 | exporter_instance = _exporters[exporter] | |
|
115 | 118 | |
|
116 | 119 | #Try to convert the notebook using the appropriate conversion function. |
|
117 | 120 | if isinstance(nb, NotebookNode): |
General Comments 0
You need to be logged in to leave comments.
Login now