environment/lib/python2.7/site-packages/IPython/nbformat/current.py
def reads_py(s, **kwargs):
    """Read a .py notebook from a string and return the NotebookNode object."""
    nbf, nbm, s = parse_py(s, **kwargs)
    if nbf == 2:
        nb = v2.to_notebook_py(s, **kwargs)
    elif nbf == 3:
        nb = v3.to_notebook_py(s, **kwargs)
    else:
        raise NBFormatError('Unsupported PY nbformat version: %i' % nbf)
    return nb
def reads_py(s, **kwargs):
    nbf, nbm, s = parse_py(s, **kwargs)
    if nbf == 2:
        nb = v2.to_notebook_py(s, **kwargs)
    elif nbf == 3:
        nb = v3.to_notebook_py(s, **kwargs)
    else:
        raise NBFormatError('Unsupported PY nbformat version: %i' % nbf)
    return nb
def reads_py ( s , * * kwargs ) : nbf , nbm , s = parse_py ( s , * * kwargs ) if nbf == 2 : nb = v2 . to_notebook_py ( s , * * kwargs ) elif nbf == 3 : nb = v3 . to_notebook_py ( s , * * kwargs ) else : raise NBFormatError ( 'Unsupported PY nbformat version: %i' % nbf ) return nb
Read a .py notebook from a string and return the NotebookNode object.
Read a . py notebook from a string and return the NotebookNode object .