Warning
This documentation is for an old version of IPython. You can find docs for newer versions here.
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.
from_version : int
The version of the notebook to convert from.
-
IPython.nbformat.v2.convert.
downgrade
(nb)¶ Convert a v2 notebook to v1.
Parameters: nb : NotebookNode
The Python representation of the notebook to convert.