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
import wandb_workspaces.reports.v2 as wr

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.4.0.tar.gz (222.2 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.4.0-py3-none-any.whl (104.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wandb_workspaces-0.4.0.tar.gz
  • Upload date:
  • Size: 222.2 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.4.0.tar.gz
Algorithm Hash digest
SHA256 24e44479f3c4bc53b7a27332abde19ae9f14696836b780445efcde8ed5e3c424
MD5 ed32dd5e2117f43ec0cca9c2c6a77363
BLAKE2b-256 e780a9817bde25a67088eb84db8a106b42eefe8bcebd19d488577158261bd984

See more details on using hashes here.

Provenance

The following attestation bundles were made for wandb_workspaces-0.4.0.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.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wandb_workspaces-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4791972bb66753a17ae8740b642ec66a9daefbd47f029fdcec8ed2cb2f6d7f15
MD5 1a06330a2982725c9dcf27b790f1ab60
BLAKE2b-256 6c4779cb036272b5f35a3470c9ca7bdda14be3b45491df5727409fb65f983805

See more details on using hashes here.

Provenance

The following attestation bundles were made for wandb_workspaces-0.4.0-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