{ } Raw JSON

bundles / nbformat 5.11.1 / nbformat / validator / _normalize

function

nbformat.validator:_normalize

source: /nbformat/validator.py:319

Signature

def _normalize(nbdict: Any, version: int, version_minor: int, repair_duplicate_cell_ids: bool, relax_add_props: bool, strip_invalid_metadata: bool) → tuple[int, Any]

Summary

Private normalisation routine.

Extended Summary

This function attempts to normalize the nbdict passed to it.

As _normalize() is currently used both in validate() (for historical reasons), and in the normalize() public function, _normalize() does currently mutate nbdict. Ideally, once validate() stops calling _normalize(), _normalize() may stop mutating nbdict.

Aliases

  • nbformat.validator._normalize