Changing location of .neptune folder
The Neptune client requires the .neptune folder in order to function properly.
The Neptune client uses the .neptune directory to store your data locally before synchronizing it with the server.
You can safely move the .neptune directory to a different location.
If you do not want to change the location of the directory and need to access it from elsewhere in the system, the following are possible workarounds:
  • Change the current working directory inside the script that initializes Neptune
  • Create a symbolic link to the .neptune folder

Changing the current working directory inside the script

You can change the current working directory just before you initialize a run.
This change is only necessary for the init() call. After that, you can revert back to the original working directory.
Example:
1
orginal_cwd = os.getcwd() # folder_B
2
3
os.chdir("folder_A") # Change cwd to folder_A
4
5
run = neptune.init(mode="offline")
6
7
os.chdir(original_cwd) # Change cwd back to folder_B
8
9
# Log your metadata
10
...
Copied!
Output location:
  • folder_A/.neptune/offline

Creating a symbolic link to the .neptune directory

If your machine runs on Linux or a Unix-like system, you can create a symbolic link.
1
ln -s /desired_directory/my_neptune .neptune
Copied!
Then, when you initialize a run, the ./my_neptune folder will mirror the contents of .neptune:
1
run = neptune.init(mode="offline")
Copied!
Output locations:
  • ./neptune/offline
  • /desired_directory/my_neptune/offline