{ } Raw JSON

bundles / nbformat 5.11.1 / 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 : NotebookNode

The Python representation of the notebook to convert.

from_version : int

The version of the notebook to convert from.

Aliases

  • nbformat.v2.upgrade