wandb / wandb-workspaces

Programatically edit the W&B UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Q] Programmatically fetch all blocks of all reports

SauravMaheshkar opened this issue Β· comments

Hi πŸ‘‹πŸ½, I was wondering if there is any way to use the wandb API and workspaces together to fetch all the blocks of all the reports I have authored.

References

I think you can query for Reports from the vanilla W&B API, and there should be a url property.

Then you can iterate to get the blocks you need:

urls = [...]

def get_all_blocks(urls: list[str]):
  for url in urls:
    report = wr.Report.from_url(url)
    yield from report.blocks