IPython Documentation

Table Of Contents

Previous topic

Module: nbconvert.preprocessors.base

Next topic

Module: nbconvert.preprocessors.convertfigures

This Page

Note

This documentation is for a development version of IPython. There may be significant differences from the latest stable release (1.2.1).

Module: nbconvert.preprocessors.coalescestreams

Module that allows latex output notebooks to be conditioned before they are converted. Exposes a decorator (@cell_preprocessor) in addition to the coalesce_streams pre-proccessor.

2 Functions

IPython.nbconvert.preprocessors.coalescestreams.cell_preprocessor(function)

Wrap a function to be executed on all cells of a notebook

The wrapped function should have these parameters:

cell : NotebookNode cell
Notebook cell being processed
resources : dictionary
Additional resources used in the conversion process. Allows preprocessors to pass variables into the Jinja engine.
index : int
Index of the cell being processed
IPython.nbconvert.preprocessors.coalescestreams.coalesce_streams(nb, resources)