{ } Raw JSON

bundles / nbformat latest / nbformat / v4 / convert / upgrade

function

nbformat.v4.convert:upgrade

source: /nbformat/v4/convert.py:29

Signature

def upgrade(nb, from_version = None, from_minor = None)

Summary

Convert a notebook to latest v4.

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.v4.upgrade