Show More
@@ -335,10 +335,13 b' class Exporter(Configurable):' | |||||
335 | and filters. |
|
335 | and filters. | |
336 | """ |
|
336 | """ | |
337 |
|
337 | |||
338 |
|
338 | # Do a deepcopy first, | ||
|
339 | # we are never safe enough with what the transformers could do. | |||
|
340 | nbc = deepcopy(nb) | |||
|
341 | resc = deepcopy(resources) | |||
339 | #Run each transformer on the notebook. Carry the output along |
|
342 | #Run each transformer on the notebook. Carry the output along | |
340 | #to each transformer |
|
343 | #to each transformer | |
341 | for transformer in self.transformers: |
|
344 | for transformer in self.transformers: | |
342 |
nb, resources = transformer(nb, res |
|
345 | nb, resources = transformer(nbc, resc) | |
343 | return nb, resources |
|
346 | return nb, resources | |
344 |
|
347 |
General Comments 0
You need to be logged in to leave comments.
Login now