Skip to main content
The following guide will help you get started with W&B notebooks, from creating your first notebook to running a training experiment.

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:
  3. Press Command + Enter on macOS or Ctrl+Enter on Windows or Linux. Alternatively, click Play () 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

W&B stores your notebook as a W&B Artifact and automatically saves changes as a new Artifact version every 30 seconds and when the notebook’s compute session stops. To save your latest changes immediately, use one of the following options:
  • Press Command+S on macOS or Ctrl+S on Windows or Linux.
  • In the notebook footer, click Save ().