This documentation is for an old version of IPython. You can find docs for newer versions here.

Module: nbconvert.writers.base

Contains writer base class.

1 Class

class IPython.nbconvert.writers.base.WriterBase(config=None, **kw)

Bases: IPython.nbconvert.utils.base.NbConvertBase

Consumes output from nbconvert export...() methods and writes to a useful location.

__init__(config=None, **kw)


write(output, resources, **kw)

Consume and write Jinja output.


output : string

Conversion results. This string contains the file contents of the converted file.

resources : dict

Resources created and filled by the nbconvert conversion process. Includes output from preprocessors, such as the extract figure preprocessor.