Skip to main content

Get started

This page describes how to install and configure Neptune for logging metadata to your project.

Prerequisites

SoftwareVersionWebsite
Python3.8+python.org/downloads
pip-pip.pypa.io

1. Create a project

A project is where you send your run metadata. It typically represents one machine learning task.

  1. Log in to your Neptune Scale workspace.

  2. Create a project or choose an existing one.

2. Get the project path

To send the metadata to the right place, Neptune requires you to specify the project path in the following format: workspace-name/project-name.

To get your project path:

  1. In the Neptune app, open the project menu ().

  2. From the dropdown, select Settings.

Project menu in the Neptune app.

3. Get your API token

To authenticate with Neptune, get your API token:

  1. In the Neptune app, expand the user menu.

  2. Select Get your API token.

How to find a Neptune API token in the Neptune app.

tip

If you're a workspace admin, you can also set up a service account in your workspace settings. This way, multiple people or machines can share the same API token.

4. Save credentials as environment variables

By saving your project path and API token to environment variables, you avoid putting them in your Python code. This approach is more convenient and secure.

Adding an environment variable depends on your system:

In your .profile or other shell initialization file, use the export commands:

export NEPTUNE_API_TOKEN="h0dHBzOi8aHR0cHM.4kl0jvYh3Kb8...ifQ=="
export NEPTUNE_PROJECT="workspace-name/project-name"

You may need to restart terminal session. After this, Neptune finds your credentials automatically.

5. Install Neptune Scale

To install the neptune-scale package, use:

pip install neptune-scale

You're ready to start using Neptune Scale! If you need help, contact support@neptune.ai.

Next steps