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.

Logging artifacts is the handiest way to track and version files that you store elsewhere, such as datasets and model files. For details, see Tracking artifacts.