Skip to content

How to use Neptune in Deepnote#

To track runs and log metadata to Neptune, take the following steps in your Deepnote environment:

Set up your API token#

To add an environment variable integration for your Neptune API token:

  1. In Deepnote, select Integrations.
  2. Create a new Environment variables integration.
  3. Set the key to NEPTUNE_API_TOKEN and the value to your Neptune API token.

    How do I find my API token?

    In the bottom-left corner of the Neptune app, open the user menu and select Get your API token.

    You can copy your token from the dialog that opens. It's very long – make sure to copy and paste it in full!

  4. Save the environment variable.

Install Neptune#

pip install -U neptune
! pip install -U neptune

You can now use Neptune with your model training code.