PAPablo Daniel Álvarez Hernández

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

The real window.

Features

One window, every structure.

3D

Structure

Ball and stick; rotate, move and zoom with the mouse, and hover an atom.

E(n)

Energy plot

Hover a point to see n, E and the label; click or drag to browse. Static: no accidental panning or zooming.

▶

Playback

First, previous, play/pause, next, last, speed and loop.

X11

Fluid over SSH

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

Reads your files

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.

.cube

Cube files

Orbitals, densities and Fukui functions as isosurfaces: positive lobe red, negative blue, adjustable isovalue and optional transparency.

opt

Step by step

Every geometry of a Gaussian or ORCA optimization, with its energy, browsed as a trajectory with its E vs step plot.

q, f

Per-atom values

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.

☀

Light theme

A Light theme checkbox, or --light from the terminal.

--list

Structure table

Prints a tab-separated table (n, energy, label, atoms, formula, source) on stdout, without opening a window.

M–M

Bonds

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 mode

--smooth draws antialiased spheres and bonds through XRender; also a checkbox in the window.

How it works

On the cluster, on your screen.

# on your computer
$ ssh -Y user@cluster

# on the cluster, where your files are
$ cd /path/to/results
$ mole structures.xyz
mole water_opt_trj.xyz− 4 struct/s +Loop− tol 1.25 +M-M bondsSmoothnEInterpretive illustration
←→previous / next
spaceplay / pause
HomeEndfirst / last
qEscquit
dragrotate
right buttonmove
wheelzoom
double clickreset
plothover a point · click or drag to browse
filestructures · energy
.xyzall frames · comment line
Gaussian outputevery geometry · SCF Done
ORCA outputevery geometry · FINAL SINGLE POINT ENERGY
.cubeisosurface · isovalue, transparency
extended XYZper-atom values · forces as arrows
Energies are shown as read, without unit conversion

Install it where your files are.

Install MOLE on the cluster or workstation and connect with X11 forwarding. Your computer only needs an X server.

Structure, plot and controls in one window.

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.

Everything at your fingertips.

Arrows, space, Home and End to browse; drag, right button and wheel to rotate, move and zoom.

XYZ, Gaussian, ORCA and cube.

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

More files, same window.

Highlights only; the full detail is in CHANGELOG.md.

1Cube files

Orbitals, densities and Fukui functions as isosurfaces, positive lobe red and negative blue, with adjustable isovalue and optional transparency.

2Optimizations step by step

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.

3Extended XYZ

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.

4Light theme

The Light theme checkbox, or --light from the terminal.

5Grouped controls

The controls column is grouped into Playback, Bonds, Surface, Forces, View and Plot.

6Terminal options

View options from the command line: --frame, --iso, --tol, --no-mm, --absolute, --fix-orientation, --transparent and --no-forces.

1Executable, no administrator rights needed
<1 MBStatic Linux binary
4Input formats: XYZ and extended XYZ, Gaussian and ORCA outputs, cube files
4Platform wheels on PyPI: Linux x86_64 and aarch64, macOS, Windows

Get started

Install, connect, open.

Install

The package is called mole-viewer; the command is mole. Python 3.6 or newer.

$ pip install mole-viewer
$ pip install --upgrade mole-viewer

Connect

X11 forwarding from your computer to the cluster.

$ ssh -Y user@cluster
$ cd /path/to/results

Open

One or more files, in the given order.

$ mole ensemble.xyz
$ mole calc_*.out
$ mole --list ensemble.xyz
+No pip on the cluster
$ 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
+Prebuilt binary (Linux x86_64, static)
$ 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
+From source (Rust)
$ cargo install --git https://github.com/Padalher/MOLE mole

Your 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

Every release, kept.

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.

0.3.1Latest
sha256 62b4bfd19c5d291ee15dfade773971f29747d0ffdd4f7a055a52395371dc0674
0.3.0
sha256 ced8089a47d9588fe3735c63f24ff338a21c9b63b99d0c0e3fe1ac258e8cc712

Cite & download

Free to use, free to cite.

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}
}
Authors. Pablo Daniel Álvarez Hernández (DACB-UJAT) and Filiberto Ortiz Chi (SECIHTI-Cinvestav Unidad Mérida). Questions about the software: contact@padalher.com.

How it was built. MOLE was designed, directed and validated by Pablo D. Alvarez-Hernandez. AI-based coding assistants were used to write and refactor parts of the code, the automated tests and the documentation; every change was reviewed and validated by the author. The energies and geometries that MOLE shows are always read from the quantum-chemistry output files, never generated by a language model.