Show More
@@ -29,11 +29,12 b' class Preprocessor(NbConvertBase):' | |||
|
29 | 29 | Inherit from this class if you wish to have configurability for your |
|
30 | 30 | preprocessor. |
|
31 | 31 | |
|
32 |
Any configurable traitlets this class exposed will be configurable in |
|
|
33 | using c.SubClassName.atribute=value | |
|
32 | Any configurable traitlets this class exposed will be configurable in | |
|
33 | profiles using c.SubClassName.atribute=value | |
|
34 | 34 | |
|
35 |
you can overwrite :meth:`preprocess_cell` to apply a |
|
|
36 | or :meth:`preprocess` if you prefer your own logic. See corresponding docstring for informations. | |
|
35 | you can overwrite :meth:`preprocess_cell` to apply a transformation | |
|
36 | independently on each cell or :meth:`preprocess` if you prefer your own | |
|
37 | logic. See corresponding docstring for informations. | |
|
37 | 38 | |
|
38 | 39 | Disabled by default and can be enabled via the config by |
|
39 | 40 | 'c.YourPreprocessorName.enabled = True' |
@@ -65,11 +66,11 b' class Preprocessor(NbConvertBase):' | |||
|
65 | 66 | |
|
66 | 67 | def preprocess(self, nb, resources): |
|
67 | 68 | """ |
|
68 |
|
|
|
69 | Preprocessing to apply on each notebook. | |
|
69 | 70 | |
|
70 | 71 | You should return modified nb, resources. |
|
71 |
If you wish to apply your preprocess o |
|
|
72 | overwrite preprocess_cell method instead. | |
|
72 | If you wish to apply your preprocessing to each cell, you might want | |
|
73 | to overwrite preprocess_cell method instead. | |
|
73 | 74 | |
|
74 | 75 | Parameters |
|
75 | 76 | ---------- |
@@ -91,7 +92,7 b' class Preprocessor(NbConvertBase):' | |||
|
91 | 92 | |
|
92 | 93 | def preprocess_cell(self, cell, resources, index): |
|
93 | 94 | """ |
|
94 |
Overwrite if you want to apply |
|
|
95 | Overwrite if you want to apply some preprocessing to each cell. You | |
|
95 | 96 | should return modified cell and resource dictionary. |
|
96 | 97 | |
|
97 | 98 | Parameters |
General Comments 0
You need to be logged in to leave comments.
Login now