Structure
Ball and stick; rotate, move and zoom with the mouse, and hover an atom.
What is MOLE?
Launched from the terminal, MOLE opens a window with the 3D structure, the energy plot E vs n and playback controls. It draws with the core X11 protocol, so only drawing commands travel over the network — 5 KB per frame for a water molecule, 74 KB for 100 atoms — and the window stays fluid even on a home connection. It only reads results; it never runs calculations.
Screenshots
Water hexamer, (H₂O)₆: 15 starts optimized with GFN2-xTB; the lowest-energy one is selected. Half of the window in each theme.
Water optimized with ORCA 6.1.1, B3LYP-D3BJ/def2-SVP (the example bundled with MOLE): E − Emin against the step.
A π orbital of benzene: red and blue lobes, isovalue 0.0152, transparency on.
Extended XYZ from CADMIA (Al₂TiO₅, public example): hovering O(2) shows its charge, Fukui functions and dual descriptor.
H₂ compressed to 0.60 Å in a GFN2-xTB 6.7.1 bond-length scan (26 distances, 0.5 to 3.0 Å).
Features
Ball and stick; rotate, move and zoom with the mouse, and hover an atom.
Hover a point to see n, E and the label; click or drag to browse. Static: no accidental panning or zooming.
First, previous, play/pause, next, last, speed and loop.
Core X11 drawing: only drawing commands travel. Measured per frame: water 5 KB, water hexamer 10 KB, 100 atoms 74 KB (25 KB with --smooth).
XYZ with one or many structures, including ORCA *_trj.xyz trajectories; Gaussian 16 and ORCA 6.1 outputs, recognized by their contents; cube files and extended XYZ.
Orbitals, densities and Fukui functions as isosurfaces: positive lobe red, negative blue, adjustable isovalue and optional transparency.
Every geometry of a Gaussian or ORCA optimization, with its energy, browsed as a trajectory with its E vs step plot.
In extended XYZ, hover an atom to see its values (charges, Fukui functions, dual descriptor…); a forces column is drawn as arrows on a common logarithmic scale.
A Light theme checkbox, or --light from the terminal.
Prints a tab-separated table (n, energy, label, atoms, formula, source) on stdout, without opening a window.
Bond tolerance adjustable from the window; metal–metal bonds are drawn by default, so pure Cu, Ag or Au clusters show them, and one checkbox turns them off.
--smooth draws antialiased spheres and bonds through XRender; also a checkbox in the window.
How it works
# on your computer $ ssh -Y user@cluster # on the cluster, where your files are $ cd /path/to/results $ mole structures.xyz
Install MOLE on the cluster or workstation and connect with X11 forwarding. Your computer only needs an X server.
Hover a point of the E vs n plot to see n, E and the label; click or drag on it to browse the structures, or play them all.
Arrows, space, Home and End to browse; drag, right button and wheel to rotate, move and zoom.
Outputs can end in .out or .log: the program is recognized by the file contents, and an optimization is read step by step. Structures without an energy can be viewed, but they are not plotted. Tested with Gaussian 16 Rev. B.01 and ORCA 6.1.
What's new in 0.3.1
Highlights only; the full detail is in CHANGELOG.md.
Orbitals, densities and Fukui functions as isosurfaces, positive lobe red and negative blue, with adjustable isovalue and optional transparency.
Every geometry of a Gaussian or ORCA output is read with its energy, so an optimization plays as a trajectory with its E vs step plot.
Hover an atom to see its per-atom values (charges, Fukui functions, dual descriptor…); a forces column is drawn as arrows from each atom's surface, on a logarithmic scale common to the whole file.
The Light theme checkbox, or --light from the terminal.
The controls column is grouped into Playback, Bonds, Surface, Forces, View and Plot.
View options from the command line: --frame, --iso, --tol, --no-mm, --absolute, --fix-orientation, --transparent and --no-forces.
Get started
The package is called mole-viewer; the command is mole. Python 3.6 or newer.
$ pip install mole-viewer $ pip install --upgrade mole-viewer
X11 forwarding from your computer to the cluster.
$ ssh -Y user@cluster $ cd /path/to/results
One or more files, in the given order.
$ mole ensemble.xyz $ mole calc_*.out $ mole --list ensemble.xyz
$ python3 -m venv ~/.local/mole-viewer $ ~/.local/mole-viewer/bin/pip install mole-viewer $ mkdir -p ~/.local/bin && ln -sf ~/.local/mole-viewer/bin/mole ~/.local/bin/mole
$ curl -LO https://github.com/Padalher/MOLE/releases/latest/download/mole-x86_64-linux $ chmod +x mole-x86_64-linux $ mkdir -p ~/.local/bin && mv mole-x86_64-linux ~/.local/bin/mole
$ cargo install --git https://github.com/Padalher/MOLE moleYour computer needs an X server: built in on Linux, XQuartz on macOS; on Windows, install the Linux version inside WSL, whose WSLg opens the window directly on Windows 11 (viewing it from a cluster with MobaXterm or VcXsrv on Windows itself is not yet tested). Try it from a copy of the repository with the bundled water optimization example: mole examples/water_opt_trj.xyz.
Tested on Linux, on macOS with XQuartz and on Windows through WSL, locally and on an HPC cluster over ssh. Native Windows is not yet tested.
Source
Source archives as published on PyPI, with their SHA-256. Each version has its own Zenodo DOI; binaries and wheels are on the GitHub release, with SHA256SUMS.
sha256 62b4bfd19c5d291ee15dfade773971f29747d0ffdd4f7a055a52395371dc0674sha256 ced8089a47d9588fe3735c63f24ff338a21c9b63b99d0c0e3fe1ac258e8cc712Cite & download
MIT license. If you use MOLE in published work, please cite it; the metadata are in CITATION.cff, and GitHub's “Cite this repository” button turns them into APA or BibTeX.
@software{mole2026,
author = {Alvarez-Hernandez, Pablo D. and Ortiz Chi, Filiberto},
title = {MOLE: a lightweight molecular viewer with an interactive E vs n plot},
version = {0.3.1},
year = {2026},
month = {11},
license = {MIT},
doi = {10.5281/zenodo.23963301},
url = {https://github.com/Padalher/MOLE}
}