IPython Documentation

Table Of Contents

Previous topic

Module: nbconvert.preprocessors.highlightmagics

Next topic

Module: nbconvert.preprocessors.revealhelp

This Page


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

Module: nbconvert.preprocessors.latex

Module that allows latex output notebooks to be conditioned before they are converted.

1 Class

class IPython.nbconvert.preprocessors.latex.LatexPreprocessor(**kw)

Bases: IPython.nbconvert.preprocessors.base.Preprocessor

Preprocessor for latex destined documents.

Mainly populates the latex key in the resources dict, adding definitions for pygments highlight styles.

preprocess(nb, resources)

Preprocessing to apply on each notebook.


nb : NotebookNode

Notebook being converted

resources : dictionary

Additional resources used in the conversion process. Allows preprocessors to pass variables into the Jinja engine.