Example #1
0
def read_v2(source: typing.io.TextIO, as_version: int,
            **kwargs: typing.Any) -> NotebookNode:
    nb = _read(source, as_version, **kwargs)
    MetadataValidatorV2().validate_nb(nb)
    return nb
Example #2
0
File: v1.py Project: zonca/nbgrader
def read_v1(source, as_version, **kwargs):
    nb = _read(source, as_version, **kwargs)
    ValidatorV1().validate_nb(nb)
    return nb
Example #3
0
def read_v2(source, as_version, **kwargs):
    nb = _read(source, as_version, **kwargs)
    MetadataValidatorV2().validate_nb(nb)
    return nb
Example #4
0
def read_v1(source, as_version, **kwargs):
    nb = _read(source, as_version, **kwargs)
    MetadataValidatorV1().validate_nb(nb)
    return nb