bundles / nbformat latest / nbformat / v2 / convert / upgrade
function
nbformat.v2.convert:upgrade
source: /nbformat/v2/convert.py:28
Signature
def upgrade(nb, from_version = 1)Summary
Convert a notebook to the v2 format.
Parameters
nb: NotebookNodeThe Python representation of the notebook to convert.
from_version: intThe version of the notebook to convert from.
Aliases
nbformat.v2.upgrade