You can easily run experiments in Deepnote notebooks and log them to Neptune. To do that you need to:

Step 1: Install neptune-client

! pip install neptune-client

Step 2: Set up an environment variable for the API token

Create a new environment variable integration in the left tab where you set the NEPTUNE_API_TOKEN. Alternatively, you can initialize neptune with the API token directly with the snippet:

# Alternative version to initialising Neptune

See how to get your Neptune API token here.

Step 3: Replace the project name and log metrics into a Neptune dashboard

import neptune

# The init() function called this way assumes that
# NEPTUNE_API_TOKEN environment variable is defined by the integration.


# log some metrics

for i in range(100):
    neptune.log_metric('loss', 0.95**i)

neptune.log_metric('AUC', 0.96)


Check out a this example Deepnote notebook with Neptune logging.