##// END OF EJS Templates
propagate new values to singletons in export_by_name
MinRK -
Show More
@@ -113,8 +113,11 b' def export(exporter, nb, **kw):'
113 exporter_instance = exporter
113 exporter_instance = exporter
114 else:
114 else:
115 if exporter not in _exporters:
115 if exporter not in _exporters:
116 _exporters[exporter] = exporter(**kw)
116 exporter_instance = _exporters[exporter] = exporter(**kw)
117 exporter_instance = _exporters[exporter]
117 else:
118 exporter_instance = _exporters[exporter]
119 for attr, value in kw.items():
120 setattr(exporter_instance, attr, value)
118
121
119 #Try to convert the notebook using the appropriate conversion function.
122 #Try to convert the notebook using the appropriate conversion function.
120 if isinstance(nb, NotebookNode):
123 if isinstance(nb, NotebookNode):
General Comments 0
You need to be logged in to leave comments. Login now