{ } Raw JSON

bundles / nbformat latest / nbformat / v3 / convert / upgrade

function

nbformat.v3.convert:upgrade

source: /nbformat/v3/convert.py:27

Signature

def upgrade(nb, from_version = 2, from_minor = 0)

Summary

Convert a notebook to v3.

Parameters

nb : NotebookNode

The Python representation of the notebook to convert.

from_version : int

The original version of the notebook to convert.

from_minor : int

The original minor version of the notebook to convert (only relevant for v >= 3).

Aliases

  • nbformat.v3.upgrade