Skip to main content
The following guide will help you get started with W&B notebooks, from signing up and creating an API key to running your first training experiment.

Sign up and create an API key

To authenticate your machine with W&B, you need an API key. To create an API key, select the Personal API key or Service Account API key tab for details.
To create a personal API key owned by your user ID:
  1. Log in to W&B, then click your user profile icon > User Settings.
  2. Click Create new API key.
  3. Provide a descriptive name for your API key.
  4. Click Create.
  5. Copy the displayed API key immediately and store it securely.
W&B shows the full API key only once, when you create it. After you close the dialog, you cannot view the full API key again. Your settings display only the key ID (the first part of the key). If you lose the full API key, you must create a new one.
For secure storage options, see Store API keys securely.

Create your first notebook

  1. Navigate to your project’s workspace.
  2. Select Notebooks from the project sidebar.
  3. Click Create notebook.
See the Create and manage notebooks for more information.

Run a training experiment

This mock training script logs simulated accuracy and loss metrics to W&B. Copy and paste the following code into a Python script or notebook cell and run it:
  1. Select Python to create a new code cell.
  2. Copy and paste the following code into the cell:
  1. Press Command + Enter on macOS or Ctrl+Enter on Windows or Linux. Alternatively, select the play () button next to the cell.

View your experiment

View the accuracy and loss metrics logged during the training experiment:
  1. Select Workspace from the project sidebar.
  2. Review the runs and visualizations in the workspace. The runs list shows each run logged to the project and its details. Workspace panels display visualizations of the metrics logged during each run.

Save the notebook

Notebooks save automatically by default. You can turn off automatic saving, change how often the notebook saves, and configure other save settings in the notebook preferences. To save the notebook manually, press Command+S on macOS or Ctrl+S on Windows or Linux. Alternatively, select the save () button in the lower-right corner of the notebook.

Share your notebook

Share your notebook with users outside of W&B. You can publish it as HTML, create a WebAssembly link, or create a molab notebook.
  1. Select action ( ) in the upper-right corner of the notebook.
  2. Move your cursor to Share.
  3. From the dropdown menu, select the desired sharing option: Publish HTML to web, Create WebAssembly link, or Create molab notebook.
For more information on sharing your notebook, see the relevant guides below: