{ } Raw JSON

bundles / nbformat 5.11.1 / nbformat / validator / iter_validate

function

nbformat.validator:iter_validate

source: /nbformat/validator.py:589

Signature

def iter_validate(nbdict = None, ref = None, version = None, version_minor = None, relax_add_props = False, nbjson = None, strip_invalid_metadata = False)

Summary

Checks whether the given notebook dict-like object conforms to the relevant notebook format schema.

Extended Summary

Returns a generator of all ValidationErrors if not valid.

Notes

To fix: For security reasons, this function should never mutate its nbdict argument, and should never try to validate a mutated or modified version of its notebook.

Aliases

  • nbformat.validator.iter_validate