@weave.op() and call it inside a wandb.init() context, Weave automatically associates the trace with the W&B run.
The Traces table shows links to any associated runs.
View a W&B run in the Traces table
- Python
- TypeScript
The following Python code shows how Weave links traced Ops to W&B
runs when you run them inside a
wandb.init() context. These traces appear in the
Weave UI and are associated with the corresponding run.To view a W&B run as a Weave trace:- In the terminal, install dependencies.
- Log in to W&B.
- In the following script, replace
your-team-name/your-project-namewith your W&B entity and project:
- Run the script.
- Navigate to the W&B app and select your project.
- In the Weave project sidebar, click Traces. The Traces table displays links to any associated runs.