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