Skip to main content

A library for programatically working with the Weights & Biases UI.

Project description



wandb-workspaces

PyPI CircleCI codecov

wandb-workspaces is a Python library for programatically working with Weights & Biases workspaces and reports.

Quickstart

1. Install

pip install wandb-workspaces

OR, you can install this as an extra from the wandb library:

pip install wandb[workspaces]

2. Create a workspace

import wandb_workspaces.workspaces as ws

workspace = ws.Workspace(
   name="Example W&B Workspace",
   entity="your-entity",
   project="your-project",
   sections=[
      ws.Section(
            name="Validation Metrics",
            panels=[
               wr.LinePlot(x="Step", y=["val_loss"]),
               wr.BarPlot(metrics=["val_accuracy"]),
               wr.ScalarChart(metric="f1_score", groupby_aggfunc="mean"),
            ],
            is_open=True,
      ),
   ],
).save()

image

3. Create a report

import wandb_workspaces.reports as wr

report = wr.Report(
    entity="your-entity",
    project="your-project",
    title="Example W&B Report",
    blocks=[
        wr.H1("This is a heading"),
        wr.P("Some amazing insightful text about your project"),
        wr.H2(
            "This heading is collapsed",
            collapsed_blocks=[wr.P("Our model is great!")],
        ),
        wr.PanelGrid(
            panels=[
                wr.LinePlot(x="Step", y=["val_loss"]),
                wr.BarPlot(metrics=["val_accuracy"]),
                wr.ScalarChart(metric="f1_score", groupby_aggfunc="mean"),
            ]
        ),
    ],
).save()

image

More examples

See examples for more detailed usage.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wandb_workspaces-0.1.6.tar.gz (63.7 kB view details)

Uploaded Source

Built Distribution

wandb_workspaces-0.1.6-py3-none-any.whl (72.4 kB view details)

Uploaded Python 3

File details

Details for the file wandb_workspaces-0.1.6.tar.gz.

File metadata

  • Download URL: wandb_workspaces-0.1.6.tar.gz
  • Upload date:
  • Size: 63.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.5 Darwin/23.4.0

File hashes

Hashes for wandb_workspaces-0.1.6.tar.gz
Algorithm Hash digest
SHA256 aa300fffb4d0f256be13ea33ba99ff0a9f9935c29e1bf7aa523ff4ba1cb76135
MD5 768366aea184d3a8a3c9d4feb28b4012
BLAKE2b-256 dab2bef4e54e9fa5a73ef59248a36aa56de6e176c2546f0881a012e934969bf5

See more details on using hashes here.

File details

Details for the file wandb_workspaces-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for wandb_workspaces-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 742316ad402e4b0869d09b207102ad99d3d7b3f39dfde1e29f76ba5021faa642
MD5 289dc4771c6cf3b397d093425211d0ce
BLAKE2b-256 41ffa6b83f147f7f77e27f5471e27b4bcf92454dff54eb563bc5f1f738a01cdb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page