Skip to main content

femforge-workbench

The browser workbench for femforge: a dock of panels that browse runs and artifacts, follow solves and logs as they happen, and show the solved fields in 3D. It runs on trame, and every workbench opens from a script as well as from the command line.

Install

Install it through femforge's extra, which pins the matching version:

pip install "femforge[workbench]"

From a script

femforge.workbench holds the panels and show, which serves a workbench until you stop it with Ctrl+C or close its app window:

import femforge as ff


def show_field(config: ff.SimulationConfig) -> None:
    """Solve the config, then show its flux density with the air hidden."""
    result = ff.Driver().evaluate(config)
    display = ff.DisplaySpec(field="magnetic flux density", mode=ff.DisplayMode.MAGNITUDE, hidden_bodies=("AIR",))
    ff.workbench.show(ff.workbench.field_viewer(result, display=display), title="Field", window=ff.workbench.Window.BROWSER)

show takes a built dock, or a module-level function that returns one, which it rebuilds every time you save its file. Without an argument, it opens the launcher.

The command

femforge-workbench                          # the launcher, listing every workbench
femforge-workbench field-viewer             # one workbench, by name
femforge-workbench -m lab.board:workbench   # a module attribute that returns a dock
Flag What it does
--port N The server port, 8080 by default.
--telemetry DIR The telemetry root the panels read. The default is $FEMFORGE_TELEMETRY.
--persist DIR Where layouts and choices are saved. The default is the per-user config directory.
--watch DIR Another directory whose saves rebuild the workbench. Repeat it for more.
--app Open a Chrome or Edge app window, and stop the server when it closes.
--webview Open a pywebview window. It needs the app extra.
--dev Restart the server after every save to the shell itself, and reload the page.

Your own workbenches

A package lists its workbenches under the femforge.workbenches entry point group:

[project.entry-points."femforge.workbenches"]
lab = "lab.workbenches:WORKBENCHES"

The target is a WorkbenchSpec or a sequence of them, built with panel(...), script(...) or renderable(...) from femforge_workbench.registry:

from femforge_workbench.registry import panel

WORKBENCHES = [panel("board", "Board", target="lab.board:workbench", description="The board layout and its fields.")]

The launcher lists them beside the built-in ones, and femforge-workbench board opens one directly. A target resolves only when it opens, so the launcher starts without importing your models.

Extras

Extra Adds Needed for
app pywebview the --webview window
ocp ocp_vscode sending CAD to the OCP CAD Viewer in VS Code
pty pywinpty, on Windows only an interactive terminal panel; without it, the terminal shows the live log read-only

The workbench guide covers the panels. The workbench architecture covers the widgets, the client build, the theme, reloading and persistence.

Metadata

Release files for femforge-workbench 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for femforge-workbench 0.1.0
File Size Uploaded Provenance Actions
femforge_workbench-0.1.0.tar.gz 3.4 MB With provenance Details for femforge_workbench-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for femforge-workbench 0.1.0
File Interpreter ABI Platform Actions
femforge_workbench-0.1.0-py3-none-any.whl Python 3 none any Details for femforge_workbench-0.1.0-py3-none-any.whl

Total release size: 6.4 MB

Release files / femforge_workbench-0.1.0.tar.gz

Download URL femforge_workbench-0.1.0.tar.gz
Size 3.4 MB
Tags Source
SHA-256 checksum
How to use checksums
7115833726114940d33654877a84f02c6219b85e4cebfa418984b49115d748a7
BLAKE2b-256 checksum
How to use checksums
63f1503b15a20da332cdd399f532da93ddc9042663c992ae3b1fe07e37ea712a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / femforge_workbench-0.1.0-py3-none-any.whl

Download URL femforge_workbench-0.1.0-py3-none-any.whl
Size 2.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6d52291ed9f98c0e451bd192c297d3ba87d002f76e02ddb8a78a50a109f1ce18
BLAKE2b-256 checksum
How to use checksums
83d009a353ac4c73652daf5d61a5c5d18fedee6f679f5a7e268536c4ca0cc258
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Security for femforge-workbench 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for femforge_workbench-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page