Skip to content

Upload files#

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

Log a file
Save multiple files under the same path
run["config_files"].upload_files([path_to_config_1, path_to_config_2])
Use a wildcard pattern (glob)
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 example uploads in Neptune 

Tip: To see the upload() commands that were used for this example, check the code snapshot in the Source code tab.

Artifact tip

You should only upload files that you specifically want to store or 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 Track artifacts.