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.2

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.2
File Size Uploaded Provenance Actions
atomeye_widget-3.1.2.tar.gz 565.5 kB With provenance Details for atomeye_widget-3.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / atomeye_widget-3.1.2.tar.gz

Download URL atomeye_widget-3.1.2.tar.gz
Size 565.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d9c43f16d33d470d39f5c6410883b2c622b8289c4e4c29375fcfc3a26d6e0d53
BLAKE2b-256 checksum
How to use checksums
8d0e2b6e2351e722fb73c1e35f6f022b8b73a37bd0e43d14ec5233ccc2cba1d8
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.2-py3-none-any.whl

Download URL atomeye_widget-3.1.2-py3-none-any.whl
Size 565.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ae46397f908c954e30f98f4e0d104637eff2494db59441623ff952565a974be
BLAKE2b-256 checksum
How to use checksums
e51d5f3ed2ab2de080292c60b64937d6be12fb5b760616a867ab72b6cb42f043
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.2

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.2.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