How to set up wandb team workspace
Quick answer
To set up a wandb team workspace, first create a team on the wandb.ai website under your account settings. Then invite team members via email to collaborate, and configure project access and billing within the team settings.
PREREQUISITES
Python 3.8+wandb account (free or paid)pip install wandb
Setup
Install the wandb Python package and log in to your account. You need a wandb account to create and manage teams.
Run the following command to install:
pip install wandb Step by step
Follow these steps to create a team workspace and invite members:
- Go to https://wandb.ai and log in.
- Click your profile icon in the top right and select Teams.
- Click Create a Team, enter a team name, and create it.
- In the team dashboard, go to Settings > Members and invite members by email.
- Members accept the invite to join the team workspace.
- Use the team workspace to share projects, reports, and dashboards collaboratively.
import wandb
# Log in to wandb (runs in terminal)
wandb.login()
# Initialize a run in your team project
run = wandb.init(project="my-team-project", entity="my-team-name")
# Log metrics
wandb.log({"accuracy": 0.95})
run.finish() output
wandb: Currently logged in as: your_username wandb: Syncing run... wandb: Run summary: wandb: accuracy 0.95
Common variations
You can manage team billing and permissions from the Billing and Settings tabs in the team dashboard. Use the entity parameter in wandb.init() to specify the team workspace for your runs.
For CI/CD or server environments, use wandb login --relogin with an API key from your team settings.
import wandb
# Initialize a run under a different team entity
run = wandb.init(project="project-name", entity="another-team")
# Log data
wandb.log({"loss": 0.1})
run.finish() output
wandb: Syncing run... wandb: Run summary: wandb: loss 0.1
Troubleshooting
- If you cannot invite members, verify your team billing plan supports multiple users.
- If
wandb.login()fails, check your internet connection and API key validity. - For permission errors, ensure you have admin rights in the team settings.
Key Takeaways
- Create a team on wandb.ai under your account to enable collaborative workspaces.
- Use the entity parameter in wandb.init() to log runs to your team workspace.
- Invite members via email from the team settings to share projects and dashboards.
- Manage billing and permissions centrally in the team dashboard for smooth collaboration.