Run Neptune anywhere

You can execute your runs in any environment and log them to Neptune. There are just two things you need to do:

  1. install neptune-client,

  2. add metadata tracking to your code-base.

Install neptune-client

Depending on your operating system open a terminal or CMD and run this command:

pip install neptune-client
conda install -c conda-forge neptune-client

Add metadata tracking to your scripts

import as neptune
run = neptune.init(project='common/quickstarts',
# Track metadata and hyperparameters of your run
run["JIRA"] = "NPT-952"
run["algorithm"] = "ConvNet"
params = {
"batch_size": 64,
"dropout": 0.2,
"learning_rate": 0.001,
"optimizer": "Adam"
run["parameters"] = params
# Track the training process by logging your training metrics
for epoch in range(100):
run["train/accuracy"].log(epoch * 0.6)
run["train/loss"].log(epoch * 0.4)
# Log the final results
run["f1_score"] = 0.66

If you are not using Python don’t worry. Read how to:

Environment variables

Instead of passing api_token directly to neptune.init() you can use environment variables:

NEPTUNE_API_TOKEN: where you put your Neptune API token:


It is recommended to keep your API token in the environment variable for security reasons. Learn more:

NEPTUNE_PROJECT: where you put your project name


Remember that project has two parts 'my_workspace/my_project' for example 'neptune-ai/credit-default-prediction'.

Read how to create a project here.

How you can run Neptune?

Different languages

Various Notebook flavors