IPython Documentation

Table Of Contents

Previous topic

Module: nbformat.v2

Next topic

Module: nbformat.v2.nbbase

This Page

Module: nbformat.v2.convert

Code for converting notebooks to and from the v2 format.

Authors:

  • Brian Granger
  • Jonathan Frederic

2 Functions

IPython.nbformat.v2.convert.upgrade(nb, from_version=1)

Convert a notebook to the v2 format.

Parameters:

nb : NotebookNode

The Python representation of the notebook to convert.

orig_version : int

The original version of the notebook to convert.

IPython.nbformat.v2.convert.downgrade(nb)

Convert a v2 notebook to v1.

Parameters:

nb : NotebookNode

The Python representation of the notebook to convert.