saturn_notebook/__main__.py
def rehash(infn: "input notebook",
           outfn: "output notebook (if empty, input modified in place)"):
    """Rehash all the code cells, updating the hashes stored with checkpoints and variable cells. (advanced)"""
    if not outfn:
        outfn = infn

    with open(infn) as f:
        cells = c.parse(f)

    nb = notebook.Notebook(name = infn)
    nb.add(cells)
    nb.rehash()

    nb.save(outfn)
Rehash all the code cells, updating the hashes stored with checkpoints and variable cells. (advanced)
Rehash all the code cells, updating the hashes stored with checkpoints and variable cells. (advanced)
Rehash all the code cells updating the hashes stored with checkpoints and variable cells . ( advanced )
def rehash(infn: "input notebook",
           outfn: "output notebook (if empty, input modified in place)"):
    if not outfn:
        outfn = infn
    with open(infn) as f:
        cells = c.parse(f)
    nb = notebook.Notebook(name = infn)
    nb.add(cells)
    nb.rehash()
    nb.save(outfn)
def rehash ( infn : "input notebook" , outfn : "output notebook (if empty, input modified in place)" ) : if not outfn : outfn = infn with open ( infn ) as f : cells = c . parse ( f ) nb = notebook . Notebook ( name = infn ) nb . add ( cells ) nb . rehash ( ) nb . save ( outfn )
Rehash all the code cells, updating the hashes stored with checkpoints and variable cells.
Rehash all the code cells updating the hashes stored with checkpoints and variable cells .
"""Rehash all the code cells, updating the hashes stored with checkpoints and variable cells. (advanced)"""
infn
"input notebook"
outfn
"output notebook (if empty, input modified in place)"