lamindb.track#
- lamindb.track(transform=None, *, new_run=None, notebook_path=None, pypackage=None, editor=None)#
Track Transform & Run records for a notebook or pipeline.
Adds these records to the DB and exposes them as ln.context.transform and ln.context.run.
Call without a transform record or without arguments when tracking a Jupyter notebook.
If a Jupyter notebook has no associated metadata, attempts to write metadata to disk.
- Parameters:
transform – Optional[Transform] = None - Can be of type “pipeline” or “notebook”.
new_run – Optional[bool] = None - If False, loads latest run of transform (default notebook), if True, creates new run (default pipeline).
notebook_path – Optional[str] = None - Filepath of notebook. Only needed if inference fails.
pypackage – Optional[Union[str, List[str]]] = None - One or more python packages to track.
editor – Optional[str] = None - Editor environment. Pass ‘lab’ for jupyter lab and ‘notebook’ for jupyter notebook, this can help to identify the correct mechanism for interactivity when automatic inference fails.
- Return type:
None