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, expand 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#

Upgrading with neptune-client already installed

Important: To smoothly upgrade to the 1.0 version of the Neptune client library, first uninstall the neptune-client library and then install neptune.

pip uninstall neptune-client
pip install neptune
pip install -U neptune
! pip install -U neptune

You can now use Neptune with your model training code.