Skip to main content

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

Project description



wandb-workspaces

wandb-workspaces is a Python library for programatically working with Weights & Biases workspaces and reports. This feature is in Public Preview.

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wandb_workspaces-0.3.6-py3-none-any.whl (98.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wandb_workspaces-0.3.6.tar.gz
  • Upload date:
  • Size: 205.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wandb_workspaces-0.3.6.tar.gz
Algorithm Hash digest
SHA256 b0796881a6a702dcf5e37bd00c9992a32d7ef67e54ebc0c9d0c64806dd68a65b
MD5 0bc05529e4269f8ac1a989a80581810a
BLAKE2b-256 495717c282fc3fb82d7c8232706f1ad14c24b60a704f445506fe4f6b48d5429a

See more details on using hashes here.

Provenance

The following attestation bundles were made for wandb_workspaces-0.3.6.tar.gz:

Publisher: auto-release.yml on wandb/wandb-workspaces

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for wandb_workspaces-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 014325ffb5640e5089d64e43929142790c341f9529a53e38e35d64df197a75ee
MD5 a639ecfc9fdf143f4ec163d0af1fcdad
BLAKE2b-256 bf2d05288f436c8512ce7a021b58b86660d3d8536c2d847c0b93c46a4d00a81c

See more details on using hashes here.

Provenance

The following attestation bundles were made for wandb_workspaces-0.3.6-py3-none-any.whl:

Publisher: auto-release.yml on wandb/wandb-workspaces

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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