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.7.tar.gz (67.4 kB view details)

Uploaded Source

Built Distribution

wandb_workspaces-0.1.7-py3-none-any.whl (76.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wandb_workspaces-0.1.7.tar.gz
  • Upload date:
  • Size: 67.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.9 Darwin/23.5.0

File hashes

Hashes for wandb_workspaces-0.1.7.tar.gz
Algorithm Hash digest
SHA256 2655c689a2495fd146284c59174463dd710832d94c017915aeb9dd00f10ed770
MD5 27086df66489a9bc9b33793ecff1b227
BLAKE2b-256 1aafee2d87b78701db66c016e7499f7052aee3f6e469171486fe7cdc667a2c2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb_workspaces-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d31f36da44ad398d4827de43f005f5289cabfcd29dbde89e1bfbb34ddd45e293
MD5 bc1b6358c26aaaca9e6a9963f94473a4
BLAKE2b-256 86f2c0c1d58688e97f889417392a05b8290171145c150754686f1f0f8d547a89

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