##// END OF EJS Templates
Make copy of notebook node object to make sure the source doesn't get modified
Jonathan Frederic -
Show More
@@ -176,13 +176,14 b' class Exporter(Configurable):'
176 of additional resources that can be accessed read/write by
176 of additional resources that can be accessed read/write by
177 transformers and filters.
177 transformers and filters.
178 """
178 """
179 nb_copy = deepcopy(nb)
179
180
180 #Preprocess
181 #Preprocess
181 nb, resources = self._preprocess(nb, resources)
182 nb_copy, resources = self._preprocess(nb_copy, resources)
182
183
183 #Convert
184 #Convert
184 self.template = self.environment.get_template(self.template_file + self.template_extension)
185 self.template = self.environment.get_template(self.template_file + self.template_extension)
185 output = self.template.render(nb=nb, resources=resources)
186 output = self.template.render(nb=nb_copy, resources=resources)
186
187
187 #Set output extension in resources dict
188 #Set output extension in resources dict
188 resources['output_extension'] = self.file_extension
189 resources['output_extension'] = self.file_extension
General Comments 0
You need to be logged in to leave comments. Login now