### Navigation

- index
- modules |
- next |
- previous |
- home|
- search|
- documentation »
- The IPython API »

# nbformat.v3.nbpy

## Module: `nbformat.v3.nbpy`

Inheritance diagram for `IPython.nbformat.v3.nbpy`:

Read and write notebooks as regular .py files.

Authors:

- Brian Granger

## Classes

### `PyReader`

class `IPython.nbformat.v3.nbpy.``PyReader`

  Bases: `IPython.nbformat.v3.rwbase.NotebookReader`

  `__init__`()

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

  `new_cell`(state, lines, **kwargs)
  `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.v3.nbpy.``PyReaderError`

  Bases: `exceptions.Exception`

  `__init__`()

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

  `args`
  `message`

### `PyWriter`

class `IPython.nbformat.v3.nbpy.``PyWriter`

  Bases: `IPython.nbformat.v3.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)

### Navigation

- index
- modules |
- next |
- previous |
- home|
- search|
- documentation »
- The IPython API »