Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.0rc1

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.0rc1
File Size Uploaded Provenance Actions
femforge_workbench-0.1.0rc1.tar.gz 3.4 MB With provenance Details for femforge_workbench-0.1.0rc1.tar.gz

Built distribution (wheel)

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

Total release size: 6.3 MB

Release files / femforge_workbench-0.1.0rc1.tar.gz

Download URL femforge_workbench-0.1.0rc1.tar.gz
Size 3.4 MB
Tags Source
SHA-256 checksum
How to use checksums
c395ddefa6f2f10b985253ef2312aa541d162485ab10752349870b4004e3049f
BLAKE2b-256 checksum
How to use checksums
ef2c4aa6579172e3e393c5fe8a0b62cfb54cec70c4fc18bf92b289cf361dab94
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 17, 2026.

Transparency log

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

Download URL femforge_workbench-0.1.0rc1-py3-none-any.whl
Size 2.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7d69e8636100325361c7a1283d32fffd31497f383782d593d0276bd33bc4149e
BLAKE2b-256 checksum
How to use checksums
917b92cc0df19564803ef19f4891a3efb0cf42e297b96d331993aafb16e1c3d6
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 17, 2026.

Transparency log

Security for femforge-workbench 0.1.0rc1

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.0rc1.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 17, 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