Desktop Window¶
pyaermod-desktop opens the pyaermod GUI in a native window instead of a
browser tab. It is the same NiceGUI app as pyaermod-app, shown in a
pywebview window, and it is installed with
pip like the rest of the package.
Install and start¶
The gui-desktop extra adds pywebview to what pyaermod[gui] installs.
For other ways to install the GUI, see the
Install.
- Windows: pywebview uses the Edge WebView2 runtime, which is part of Windows 11 and of an up-to-date Windows 10. Nothing else to install.
- macOS: pywebview uses the system WebKit. Nothing else to install.
- Linux: pip does not install a window backend, so add one of the two below.
Linux: choose GTK or Qt¶
On Linux pywebview needs either GTK or Qt, and installs neither by default. Its installation page has the current details; in short:
- Qt, entirely from pip. This installs PyQt6 and PyQt6-WebEngine:
- GTK, with WebKitGTK (WebKit2 2.22 or later). On Debian and Ubuntu the system packages are:
These belong to the system Python. A virtual environment sees them
only if it was created with --system-site-packages; otherwise
install PyGObject into the environment with
pip install "pywebview[gtk]", which compiles it and so needs a C
compiler and the GObject development packages (see the
PyGObject documentation,
also for other distributions). The gir1.2-* packages are needed
either way.
If no backend is found, pyaermod-desktop stops with pywebview's error
naming GTK and Qt. The browser mode (pyaermod-app) needs none of this.
What it does¶
The command starts the NiceGUI server on a free loopback port in the background and opens a window on it, at the Project step, with the seven steps of the GUI user guide on the left.
What differs from the browser¶
The desktop window is the same GUI, with native dialogs where the browser would upload or download a file:
- Open and Import deck use a native file dialog, and the file is read from where it is. A deck imported this way brings the met files and other input files found beside it, with their full paths.
- Save as asks where to save through a native save dialog, after which Save writes back to that file.
- The met file fields on the Meteorology step have a Browse... button.
- The project's recent files (opened or saved by path, and imported decks) are listed on the Project step.
Reloading the window keeps the project. Closing the window stops the server; unsaved changes are lost, so save first. Any AERMOD run still in progress is stopped when the window closes.
AERMOD binary¶
pyaermod does not ship AERMOD. Install it as described in
Install and make sure
aermod is on your system PATH; the GUI user guide says what the Review &
Run step shows when it is not found.
Desktop downloads discontinued¶
Releases v1.9.0 and v2.0.0 have stand-alone desktop apps attached on the releases page (for Windows and Linux, and for Apple-silicon macOS in v2.0.0). They are no longer built: later releases attach none, and the ones already published get no fixes. The supported way to install the GUI is pip, as above (see Install); a conda-forge package is planned.
Those downloads are unsigned. On macOS, Gatekeeper blocks them ("Apple could not verify..." or "... is damaged and can't be opened"). If you still have one and want to run it, do either of these once, after moving the app to Applications:
- In a terminal, remove the quarantine mark the browser put on the download:
- Or try to open the app, dismiss the warning, then open System
Settings → Privacy & Security, scroll to the message about
pyaermod-desktopand choose Open Anyway.
Only do this for a file downloaded from the project's own releases page.
Reporting issues¶
The window is a thin wrapper around the same app, so most bug reports apply to both modes; see the GUI user guide. On Linux, add whether pywebview is using GTK or Qt.