IPython Documentation

Table Of Contents

Previous topic

nbformat.v2.nbjson

Next topic

nbformat.v2.nbxml

This Page

nbformat.v2.nbpy

Module: nbformat.v2.nbpy

Inheritance diagram for IPython.nbformat.v2.nbpy:

Read and write notebooks as regular .py files.

Authors:

  • Brian Granger

Classes

PyReader

class IPython.nbformat.v2.nbpy.PyReader

Bases: IPython.nbformat.v2.rwbase.NotebookReader

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

new_cell(state, lines)
read(fp, **kwargs)

Read a notebook from a file like object

reads(s, **kwargs)
split_lines_into_blocks(lines)
to_notebook(s, **kwargs)

PyReaderError

class IPython.nbformat.v2.nbpy.PyReaderError

Bases: exceptions.Exception

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

args
message

PyWriter

class IPython.nbformat.v2.nbpy.PyWriter

Bases: IPython.nbformat.v2.rwbase.NotebookWriter

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

write(nb, fp, **kwargs)

Write a notebook to a file like object

writes(nb, **kwargs)