This release is a pre-release and may not be stable for production use.
pycontrol-gui
pycontrol-gui is the Qt desktop frontend for pycontrol-core.
Core owns acquisition, recording, provenance, and the final RunResult. The GUI
owns operator workflows and displays core events through queued Qt signals.
For an architecture overview, start with the
core walkthrough, then read the
GUI integration guide.
It provides the main pyControl operator workflows:
- Run one task on one setup.
- Edit and run multi-subject experiments.
- Manage setup names, ports, provisioned board identity, and setup variables.
- View live logs and plots.
- Use workspace task handlers, experiment handlers, task plotters, task controls, and addon settings.
Install From PyPI
pyControl is installed once per machine as a global app. Install its lifecycle manager, then install and launch the app:
uv tool install --prerelease if-necessary-or-explicit pycontrol-manager
pycontrol-manager app install
pycontrol-manager app status
pycontrol gui
On first launch, the welcome dialog offers to create or open a workspace.
Or install the app directly:
uv tool install --prerelease if-necessary-or-explicit --with-executables-from pycontrol-core pycontrol-gui
# or, in an existing Python environment
pip install --pre pycontrol-gui
Upgrade published packages with pycontrol-manager app update.
Switch the Global App to Development Sources
Given a source root containing sibling pycontrol-core/ and pycontrol-gui/
checkouts:
pycontrol-manager app source local /path/to/source-root
pycontrol gui
Both checkouts are editable, so source edits are immediately live in the same
global commands and OS launcher. pycontrol-manager app update refuses to
replace editable sources. Switch back to the newest published packages
explicitly:
pycontrol-manager app source pypi
For an isolated development environment instead, pycontrol-gui/pyproject.toml
already points uv at the sibling core checkout:
cd /path/to/source-root/pycontrol-gui
uv sync --locked --extra test
uv run pycontrol-gui /path/to/workspace
Run tests with Python's module form so stale local script shebangs do not get in the way:
uv run python -m pytest
See maintainability.md for ownership and testing guidance.
Workspaces
Workspaces are plain data folders; the app is installed once and switches
between them. Open a workspace with File -> Open Workspace..., create
one with File -> New Workspace..., or pass a workspace path with
pycontrol gui PATH.
When pycontrol gui is launched without a path, it first searches the current
directory and its parents for a valid workspace. If none is found, it opens the
last valid workspace remembered from an earlier session. If there is no
remembered workspace—such as the first launch from outside a workspace—the
welcome dialog offers to create or open one. Opening or creating a workspace
remembers it for subsequent launches. An explicit path always takes precedence.
pycontrol-gui --set-workspace PATH records the workspace to open on next
launch without starting the GUI;
pycontrol-gui --forget-workspace clears the remembered workspace and recent
list so the next launch shows the welcome dialog again. Use
File -> Reload Workspace to refresh selectors after external file
changes.
The GUI uses the standard pycontrol-core workspace layout:
| Path | GUI use |
|---|---|
tasks/ |
Task selector in Run task and Experiments (task files only). Each task folder also holds the task's handlers, plotter and controls. |
hardware_definitions/ |
Hardware-definition selector and setup validation. |
devices/ |
Workspace-local device drivers for task sharing and setup maintenance. |
experiments/*.json |
Experiment editor and run view. |
settings.json / setups.json |
Workspace settings and setup registry. |
Workspace settings.json includes the default data directory plus GUI settings
such as startup tab, plot update frequency, font sizes, and whether task
controls are mounted by default. Relative data paths are resolved against the
workspace root, and users can still override the data directory for an
individual run. GUI application preferences (QSettings) store user-local
state such as the selected workspace root and splitter layouts.
Run Task
The Run task tab connects to one setup, uploads an optional hardware definition,
loads a task, and drives a core Run through start and completion. Core records
the data while the GUI routes live events into logs, controls, and plots.
The live log view supports filtering and autoscroll, and task handlers can
publish status snapshots with TaskHandler.update_status(...) for the Run
task and experiment status panels. A Progress value in a snapshot is drawn as
a progress bar, with optional fill and text colours.
Task files can select optional GUI helpers:
v.handler = "sequence"
v.plotter = "SequencePlotter"
v.controls = "reward_panel"
Missing plotters and controls fall back to the default plotter and controls. Task-handler preparation or invalid addon selection can block starting; inspect the displayed error before retrying.
Experiments
The Experiments tab edits experiment JSON files and creates one subject panel
per active subject/setup assignment. Each subject panel owns its own
SessionRuntime with its own controller, worker thread, bus adapter, board
session and core Run, plus controls and plots. Sessions own separate ports and
recordings, while all panels share the GUI thread and process.
Experiments can also select an optional hardware-test task. When enabled, the run view uploads and runs that task for each subject before preparing the main experiment task.
An active Run task run (RUNNING) locks the Experiments and Setups tabs. An
open experiment run view locks Run task and Setups so one workflow owns the
shared application state at a time.
The Qt experiment editor exposes hardware definitions as first-class fields. For
tasks that import hardware_definition, the editor shows a hardware-definition
selector (saved to the experiment's hardware_definition field) and the
subjects table previews the effective hwdef per subject. The effective hwdef is
the experiment override, else the setup's hardware_definition default. Run
task offers the same selector, and Setups store a default hwdef per setup.
Addons And Trusted Code
Workspace addons are trusted Python and execute in the GUI process.
- Addons live next to their task in its task folder and are selected by file
stem from the task (
v.handler,v.plotter,v.controls); see pycontrol-coredocs/task-folders.md. - Task plotters subclass
pycontrol_gui.plotting.TaskPlotter. - Task controls can be declarative JSON or
custom Python widgets exporting
build_controls(parent, context). The GUI renders JSON specs withTaskControlsPaneland embeds Python widgets directly. - Task and experiment handlers are loaded through
pycontrol-core. SETTINGSdeclarations for task handlers, experiment handlers, and task plotters are edited in the GUI Settings dialog and saved undersettings.addons.*. Task controls are configured through task variables or declarative control defaults instead.- The Settings dialog shows a configurable-file page for built-in plotting
defaults and each addon file with valid
SETTINGS. Each page has aUse defaultsbutton that resets only that file's settings before saving.
Secret settings are masked in the GUI but still saved in settings.json.
Task Sharing And Sandboxes
The Run task tab can export a selected task and its workspace-local dependencies as a protocol bundle ZIP. File -> Switch to Sandbox... opens a sandbox manager that can create an isolated workspace from a shared ZIP, run it against local setups, and return to the parent workspace with a visible sandbox banner. See task-sharing.md.
Plotting Diagnostics
The workspace GUI.plot_update_frequency_hz setting controls live plot redraws;
new workspaces default to 35 Hz. Plot data ingestion still happens through the
session event stream, so lowering the redraw rate reduces GUI paint work without
dropping incoming events. Built-in plot history is bounded; queued Qt event
delivery is not. Slow GUI callbacks can still accumulate display delay and memory
use, which must be measured at the intended rig and sample workload.
For hardware performance checks, launch with plot profiling enabled:
PYCONTROL_PLOT_PROFILE=1 pycontrol-gui /path/to/workspace
Set PYCONTROL_PLOT_PROFILE_INTERVAL_S to change the reporting interval. The
GUI logs [plot-profile] lines with call counts plus average and maximum
latency for process_batch() and update_plot() spans.
Import Stability
The supported import surfaces are:
pycontrol_gui.plottingpycontrol_gui.error_loggingpycontrol_gui.resources
Widgets, controllers, and workspace models are application internals. Tests may import them, but downstream code should not treat them as stable.
Error Logging
pycontrol-gui writes host-side diagnostics to a rotating ErrorLog.txt file:
<workspace root>/ErrorLog.txt~/.pycontrol-gui/logs/ErrorLog.txt./ErrorLog.txt
Open Help -> Error Log (Ctrl+E) to inspect or clear the current log.
Run bundles (.pycontrol.zip) are separate and stay in the experiment data
directory.
Documentation
New to the project? Use this reading order:
- Core walkthrough - canonical source guide to ownership, lifecycle, data flow, and failure paths.
- GUI integration - commands, threads, results, and shutdown around core.
- Documentation index - the wider documentation map; older rendered tours may describe earlier revisions.
GUI guides:
- Architecture, threading, and data flow
- Task sharing and sandboxes
- Task plotter addons
- Task controls
- Addons in the GUI
- Maintainability notes
- Changelog
- Contributor workflow
Verify a release installation
Build both repositories with uv build --wheel, then run from this checkout.
These filenames match the current checkout versions; use the actual candidate
filenames when release versions are assigned:
uv run python tools/check_wheels.py ../pycontrol-core/dist/pycontrol_core-3.0.0b4-py3-none-any.whl dist/pycontrol_gui-3.0.0b6-py3-none-any.whl
This installs the wheels into a temporary environment and opens/closes a real
window with a fresh workspace. Python runs in isolated mode, outside both
checkouts. When the candidate version differs from the GUI's declared core
minimum, the script also installs that minimum from the package index. When
they match, it tests only the supplied candidate wheel. The next core release
is 3.0.0b4, matching the GUI floor; use the final candidate, not an earlier
unpublished development build with the same version label.
A release still needs validated clean candidate artifacts and physical F4/H7 acceptance on supported operating systems at the intended sustained workload. Follow core's hardware acceptance procedure. The headless Supervisor's finite grace also needs an explicit workload/timeout decision: slow preparation or packaging can consume it. Publish core before GUI so the chosen minimum is available to installers. Passing tests or this smoke check alone does not approve stable distribution.
Metadata
Release files for pycontrol-gui 3.0.0b6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycontrol_gui-3.0.0b6.tar.gz | 316.8 kB | Without provenance | Details for pycontrol_gui-3.0.0b6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycontrol_gui-3.0.0b6-py3-none-any.whl | Python 3 | none | any | Details for pycontrol_gui-3.0.0b6-py3-none-any.whl |
Total release size: 559.1 kB
Release files / pycontrol_gui-3.0.0b6.tar.gz
| Download URL | pycontrol_gui-3.0.0b6.tar.gz |
|---|---|
| Size | 316.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e5f7c44fe32000dc6c7f4798dcdd17314a86de4e1765f3d5a66df3d13adc714
|
|
BLAKE2b-256 checksum How to use checksums |
65e7b0f02f54fd5fcb653e62bceefe0a26164154c361b287105e42cbdc4e7af2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Release files / pycontrol_gui-3.0.0b6-py3-none-any.whl
| Download URL | pycontrol_gui-3.0.0b6-py3-none-any.whl |
|---|---|
| Size | 242.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d742435f1873651c439c0ea138dee34d79c16fc11736f6966a463a2b95e1205f
|
|
BLAKE2b-256 checksum How to use checksums |
f912221446913af8578a0ab77cd5caed267fe139c77b3366e75bd701169058d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Security for pycontrol-gui 3.0.0b6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.