Skip to content

Uploading files#

You can generally upload files with the upload() and upload_files() methods.

# Log file

# Save multiple files under a path
run["config_files"].upload_files([path_to_config_1, path_to_config_2])

# You can also use wildcard patterns ("glob") with upload_files()
run["preprocessing_scripts"].upload_files("./preprocessing/*.py")  # (1)!
  1. When using pattern expansion, such as **/*.py, make sure that your expression does not capture files you don't intend to upload. For example, using * as a pattern will upload all files and directories from the current working directory (cwd).

See in Neptune 


You should only upload files that you specifically want to view and interact with in Neptune.

If you just want to track the metadata of your files (for example, for versioning purposes) logging them as artifacts is handier than uploading the files in full.

For details, see Tracking artifacts.