SourceTrackingConfig
Specifies what kind of source code and Git information to log to Neptune and where to store it.
Pass the SourceTrackingConfig
object to the source_tracking_config
argument of the Run
constructor.
Parameters
Example
from neptune_scale import Run
from neptune_scale.api.run import SourceTrackingConfig
# Configure source code tracking
source_config = SourceTrackingConfig(
namespace="source_code",
upload_entry_point=True,
upload_diff_head=True,
upload_diff_upstream=True,
upload_run_command=True,
)
# Pass the config to the Run constructor
if __name__ == "__main__":
run = Run(
experiment_name=...,
source_tracking_config=source_config,
)