1

How can I use the WandB API to get all the tags associated with a project in a nested method or function?

Currently, I am using the following code:

runs = api.runs(path=f"{entity}/{project}")
tags = []
for run in tqdm(runs): 
    tags.extend(run.tags)

list(set(tags))

However, I want to embed this code within a larger function or method. Can someone provide an example of how to achieve this?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.