## lamindb.finish

lamindb.finish(ignore_non_consecutive=None)

 Finish the run of a notebook or script.

 * writes a timestamp: "run.finished_at"

 * saves the source code if it is not yet saved:
 "transform.source_code"

 * saves a run report: "run.report"

 When called in a notebook, will prompt to save the notebook in your
 editor.

 In a Jupyter notebook, call "ln.finish()" in its own cell as the
 output of the cell in which "ln.finish()" is called is stripped
 from the run report.

 Parameters:
| **ignore_non_consecutive** ("None" | "bool", default: "None") -- |
 Whether to ignore if a notebook was non-consecutively executed.

 Return type:
 "None"

 See also:

 "lamin save script.py" or "lamin save notebook.ipynb" → docs

# Examples

 See Track notebooks, scripts & workflows .