ipypublish.preprocessors.crop_cells module¶
-
class
ipypublish.preprocessors.crop_cells.CropCells(*args, **kwargs)[source]¶ Bases:
nbconvert.preprocessors.base.PreprocessorA preprocessor to crop the notebook cells from <start> to <end>
-
end¶ An int trait.
-
preprocess(nb, resources)[source]¶ Preprocessing to apply on each notebook.
Must return modified nb, resources.
If you wish to apply your preprocessing to each cell, you might want to override preprocess_cell method instead.
- Parameters
nb (
NotebookNode) – Notebook being convertedresources (
dictionary) – Additional resources used in the conversion process. Allows preprocessors to pass variables into the Jinja engine.
-
start¶ An int trait.
-