Skip to main content

atomeye-widget

AtomEye, the atomistic configuration viewer, as a notebook widget. The viewer itself runs in the browser as WebAssembly, so the widget needs no compiled extension, no display and no server-side rendering: it works in marimo (including WASM notebooks), Jupyter and anywhere else anywidget does.

pip install atomeye-widget

It is a pure Python package, so in a notebook that runs in the browser (marimo WASM, JupyterLite, Pyodide) micropip.install("atomeye-widget") installs it too.

from ase.build import bulk
from atomeye_widget import AtomEyeWidget

w = AtomEyeWidget(bulk("Si", cubic=True) * (3, 3, 3))
w                                   # in marimo: mo.ui.anywidget(w)

AtomEyeWidget takes an ase.Atoms, a list of them (a trajectory) or Extended XYZ text. The package also registers itself as an ASE viewer: ase.visualize.view(atoms, viewer="atomeye_widget") returns the widget.

  • w.frame = 5 shows another frame of a trajectory; w.show(atoms) shows something new, keeping the view.
  • w.run_command("toggle_bond_mode") runs any AtomEye command; w.run_script(text) several. Per-atom arrays of the Atoms are available for colouring: w.aux_property_coloring("charge").
  • A new view shows the atoms at a third of their usual size, with bonds, so that the structure is visible. AtomEyeWidget(atoms, startup="") gives AtomEye's own defaults (full-size atoms, no bonds), and startup can be any AtomEye commands to run first, one per line.
  • w.capture() asks the browser for a PNG, which arrives in w.png.

Press ? on the view (or the "? shortcuts" button) for a list of the keyboard and mouse controls. The mouse and keyboard work as in AtomEye on the desktop: drag to rotate, Shift-drag to translate, wheel or right-drag to move in and out, right-click an atom for information about it (shown under "AtomEye output"); on a touch screen, one finger rotates, two fingers translate, pinching moves in and out and holding a finger still on an atom gives the information, and, after clicking on the view to give it the keyboard, the usual keys (b bonds, k coordination colouring, Delete/Insert next and previous frame, ...).

examples/marimo_demo.py in the source tree is a small marimo app; it runs in your browser at https://jameskermode.github.io/AtomEye/.

The JavaScript bundle atomeye_widget/static/widget.js is built from the C sources with Emscripten: see wasm/README.md in the source tree.

Credits and licence

AtomEye was written by Ju Li, with the scripting interface of AtomEye 3 by Futoshi Shimizu. If you use it in published work, please cite J. Li, "AtomEye: an efficient atomistic configuration viewer", Modelling Simul. Mater. Sci. Eng. 11 (2003) 173, doi:10.1088/0965-0393/11/2/305. The port to the browser and this widget are by James Kermode.

MIT licence, with the permission of the original authors: see LICENSE.

Metadata

Release files for atomeye-widget 3.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for atomeye-widget 3.1.1
File Size Uploaded Provenance Actions
atomeye_widget-3.1.1.tar.gz 565.5 kB With provenance Details for atomeye_widget-3.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for atomeye-widget 3.1.1
File Interpreter ABI Platform Actions
atomeye_widget-3.1.1-py3-none-any.whl Python 3 none any Details for atomeye_widget-3.1.1-py3-none-any.whl

Total release size: 1.1 MB

Release files / atomeye_widget-3.1.1.tar.gz

Download URL atomeye_widget-3.1.1.tar.gz
Size 565.5 kB
Tags Source
SHA-256 checksum
How to use checksums
846281719a806646532104878ccf8a338607fb8da714cf7b09126b6b5f8ad338
BLAKE2b-256 checksum
How to use checksums
af2dfb1d6b845348ae551612492a496c831b708ea51507af4b440c50887ce60f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / atomeye_widget-3.1.1-py3-none-any.whl

Download URL atomeye_widget-3.1.1-py3-none-any.whl
Size 565.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe4968a00423fe4310a0a262c4b1960d14bd1388130ece47dc57863b34db03a7
BLAKE2b-256 checksum
How to use checksums
e7e1ff7dbbfcec3598e37eead02dc9b79012702c93390bafab2d7f8514ed9b36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for atomeye-widget 3.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for atomeye_widget-3.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page