##### Can I disable tracking run inputs? [image: .md][image]

Yes, if you switch "track_run_inputs" to "False".

 # pip install lamindb
 !lamin init --storage test-run-inputs

 import lamindb as ln

Some test artifacts:

 ln.track(transform=ln.Transform(key="Dummpy pipeline"))
 ln.Artifact(ln.examples.datasets.file_jpg_paradisi05(), description="My image").save()
 ln.Artifact(ln.examples.datasets.file_mini_csv(), description="My csv").save()

Call "ln.track()":

 ln.track("Rx2s9aPTMQLY0000")

#### Don't track artifact as run input

 ln.settings.track_run_inputs = False

 artifact = ln.Artifact.get(description="My image")

 artifact.cache()

No run inputs are linked to the current notebook run:

 ln.Run.get(id=ln.context.run.id).input_artifacts.all()

 artifact.view_lineage()

 assert len(ln.Run.get(id=ln.context.run.id).input_artifacts.all()) == 0

#### Manually track artifact as run input

Let us manually track an artifact by passing "is_run_input" to either
".cache()", ".load()" or ".open()":

 artifact.cache(is_run_input=True)

You can see the fcs artifact is now being added to the run inputs:

 for input in ln.Run.get(id=ln.context.run.id).input_artifacts.all():
 print(input)

 artifact.view_lineage()

 assert len(ln.Run.get(id=ln.context.run.id).input_artifacts.all()) == 1

#### Automatically track artifacts as run input

If you switch the following setting, and call to ".load()", ".cache()"
and ".open()" will track the artifact as run input.

 ln.settings.track_run_inputs = True

 artifact = ln.Artifact.get(description="My csv")

 artifact.load()

 for input in ln.Run.get(id=ln.context.run.id).input_artifacts.all():
 print(input)

 artifact.view_lineage()

 assert len(ln.Run.get(id=ln.context.run.id).input_artifacts.all()) == 2

 !lamin delete --force test-run-inputs