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.- Personal API key
- Service account API key
To create a personal API key owned by your user ID:
- Log in to W&B, then click your user profile icon > User Settings.
- Click Create new API key.
- Provide a descriptive name for your API key.
- Click Create.
- Copy the displayed API key immediately and store it securely.
Create your first notebook
- Navigate to your project’s workspace.
- Select Notebooks from the project sidebar.
- Click Create notebook.
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:- Select Python to create a new code cell.
- Copy and paste the following code into the cell:
- 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:- Select Workspace from the project sidebar.
- 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.- Select action ( ) in the upper-right corner of the notebook.
- Move your cursor to Share.
- From the dropdown menu, select the desired sharing option: Publish HTML to web, Create WebAssembly link, or Create molab notebook.