View a W&B run in the Traces table
With W&B Weave, you can trace function calls in your code and link them directly to the W&B runs in which they were executed. When you trace a function with@weave.op() and call it inside a wandb.init() context, Weave automatically associates the trace with the W&B run.
Links to any associated runs are shown in the Traces table.
- Python
- TypeScript
The following Python code shows how traced Ops are linked to W&B
runs when executed 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 actual W&B entity/project:
- Run the script.
- Navigate to https://weave.wandb.ai and select your project.
- In the Weave project sidebar, click Traces. Links to any associated runs are displayed in the Traces table.