Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release (1.2.1).
This module defines TemplateExporter, a highly configurable converter that uses Jinja2 to export notebook files into different formats.
Bases: IPython.nbconvert.exporters.exporter.Exporter
Exports notebooks into other file formats. Uses Jinja 2 templating engine to output new formats. Inherit from this class if you are creating a new template type along with new filters/preprocessors. If the filters/ preprocessors provided by default suffice, there is no need to inherit from this class. Instead, override the template_file and file_extension traits via a config file.
Public constructor
Parameters: | config : config
extra_loaders : list[of Jinja Loaders]
template : str (optional, kw arg)
|
---|
Convert a notebook from a notebook node instance.
Parameters: | nb : NotebookNode
resources : dict
|
---|
Register a filter. A filter is a function that accepts and acts on one string. The filters are accesible within the Jinja templating engine.
Parameters: | name : str
filter : filter |
---|