Passing run object between files#
Once you've created a run with the
init_run() method, you can pass it around multiple Python files.
You can use the
run object to populate parameters of functions in other files. This way, you can work with a larger codebase and log from multiple Python scripts at once.
- We recommend saving your API token and project name as environment variables. If needed, you can pass them as arguments when initializing Neptune:
neptune.init_run(project="workspace-name/project-name", api_token="Your Neptune API token here")