Try it in the browser¶
The demos are marimo reactive apps that run in your browser: Python runs through Pyodide, so there is nothing to install. The first load downloads the Python runtime and takes a few seconds. Each demo is also available as a notebook in JupyterLite (DOC-006).
Note
The demos and examples simulate processes and machines; they are not meant to control real equipment (see the safety notice).
| Demo (marimo) | Sector | What it shows | Also in JupyterLite |
|---|---|---|---|
| Batch reactor R-101 (showcase) | Chemical and process control | A complete operator station: PackML state machine, editable recipe, PID faceplate, alarms, trend, event log, plant model | notebook |
| Gallery | All sectors | Every widget family: knobs and indicators, Boolean controls, charts, alarms, styles | notebook |
| PID tuning | Chemical and process control | Closed-loop step response of a process with dead time; overshoot and settling time follow the Kp, Ti, Td knobs | notebook |
| Operator station | Food, beverage and packaging | Filling line following the machine state model, with stack light, PID faceplate, annunciator and alarm list | notebook |
| Signal analysis | Laboratory, test and measurement | Waveform selector, frequency and noise knobs; signal, spectrum, RMS level and dominant frequency | notebook |
| Lift station | Water and wastewater | Wet well with duty / standby pumps, alternation, level alarms, a pump trip and its reset | notebook |
| Operating modes | Machines and processes (methods) | GEMMA, ISA-88 and PackML state models side by side; choosing a situation drives the three models to it through their own commands | notebook |
| SVG faceplates | Machine panels | Front panels drawn in a vector editor and animated from Python: a tank with FILL / DRAIN push buttons, a HAND / AUTO selector, a pilot lamp, a voltmeter and a pressure gauge | notebook |
| Push buttons | Machine panels | Plain push buttons (latch, jog) and illuminated push buttons whose lamps show the machine state | notebook |
| Switches and selectors | Machine panels | Two-position switches, HAND / OFF / AUTO and spring-return selectors, a four-position rotary selector | notebook |
| Virtual instrument bench | Laboratory, test and measurement | Function generator, oscilloscope and multimeter front panels built from widgets | notebook |
Each demo opens with a link back to this page and a light / system / dark
theme switch. The code is hidden: in marimo, choose Show code in the
⋯ menu (top right); in JupyterLite, click the ⋯ bar above a result or
use View ▸ Expand All Code. In marimo, cells that read a control re-run
when it changes; in JupyterLite, run all the cells first, callbacks then
update the indicators.
The package is not on the package index yet, so both deployments install the
wheel built with this site (a micropip cell in marimo,
%pip install anywidget-instruments-industrial in JupyterLite).
Note
Pyodide has no threads. Stale-data detection (heartbeats) is off, and
the demos advance their simulations with a marimo refresh clock or an
asyncio task instead of a thread. The examples of the
Examples page, which use threads, need a local Jupyter
or marimo.
The sources are in the repository: lite/marimo/*.py (marimo) and
lite/content/*.ipynb (JupyterLite).