Skip to main content

v_ase logo

v_ase

PyPI version Python versions License

v_ase combines ASE's convenient terminal and Python workflow with flexible 3D structure manipulation in one local visualizer. It opens atomic structures and trajectories in a browser, remains lightweight for viewing large systems, and enables direct atom editing when requested.

v_ase overview

Install

From PyPI:

python -m pip install v_ase-gui

From GitHub:

git clone https://github.com/lgyEthan/v_ase.git
cd v_ase
python -m pip install -e .

No Node.js installation is required.

Open

Start an empty workspace or open a file directly:

v_ase gui
v_ase gui FILE

Examples:

Input Command
POSCAR v_ase gui POSCAR
VASP structure v_ase gui structure.vasp
XYZ trajectory v_ase gui trajectory.extxyz
ASE trajectory v_ase gui relaxation.traj
Saved v_ase project v_ase gui project.vase

The terminal is released when the v_ase browser document closes.

Open immediately displays the operating system file picker. After choosing a file, select its reader, frame range, and how it should be opened.

The top-bar Open command offers three actions:

Action Result
Replace this tab Replace the current structure or trajectory
Add to trajectory Append the selected frames to the current movie
Open in new tab Open an independent document beside the current tab

Replacing a tab or opening a new tab with .vase restores the complete saved project. Adding .vase to a trajectory imports its structures only and keeps the active tab's camera, appearance, bonds, lighting, and other visual settings. New labels and chemical types are added to the existing Appearance and pairwise-bond controls automatically.

View And Edit Modes

View is the default. It is optimized for visualization, trajectories, measurements, bonds, supercells, appearance, wrapping, and export:

v_ase gui trajectory.extxyz

Use the View / Edit switch in the top bar at any time. Edit enables coordinate transforms, atom creation/deletion, constraints, undo, copy/paste, and relaxation. To start directly in Edit:

v_ase gui structure.vasp --interactive

The current structure, trajectory frame, camera, labels, appearance, bonds, and selection remain in place during a mode change. If individual atoms have different visual materials, switching to View creates numbered labels only for those visual variants. Position-only edits stay in the same label group.

Multiple Documents

Use + immediately after the document tabs to create an empty independent tab. Tabs resize as documents are added. Each tab owns its structure or trajectory, camera, selection, calculator, history, display settings, relaxation state, and .vase project. Inactive tabs pause rendering and movie playback.

Controls

Input Action
Left click Select an atom or confirm a transform
Shift + left click Add or remove selection
Left drag Box selection
Middle drag Orbit
Shift + middle drag Pan
Wheel Zoom
G Move selected atoms
R Rotate selected atoms
X, Y, Z Lock a transform axis; otherwise align the camera
Number keys Enter an exact distance or angle during G/R
Enter / left click Confirm a transform
Esc / right click Cancel a transform
Ctrl+C, Ctrl+V Copy and paste atoms
Ctrl+Z, Ctrl+Shift+Z Undo and redo structure or camera changes
Delete / Backspace Delete selected atoms
Space Play or pause the selected timeline
Left Arrow / Right Arrow Previous or next frame in the selected timeline
Tab / Esc Open the collapsed control panel
Esc Close the open panel and return focus to the viewport

The ? button shows the complete shortcut list. The six camera buttons are ordered as up/down, left/right, and counterclockwise/clockwise roll. The first four are 3D orbit controls; the last two rotate in the screen plane. They change only the view by the selected angle, never the atomic coordinates.

Trajectories

Multi-frame inputs add a timeline below the viewport. Frame scrubbing updates immediately, FPS changes apply during playback, and Skip advances by skip + 1 frames per tick. Bond settings, appearance, and supercell display remain active across all frames. Valid selected atom indices remain selected when the frame changes, so measurements update without rebuilding the selection.

Video export keeps FPS as the playback-speed control. Optional linear interpolation can create as many intervals between source frames; keeps the original trajectory unchanged. Minimum image convention follows the shortest periodic displacement using each adjacent frame's cell and PBC. Interpolation increases the number of rendered frames and therefore takes longer.

In interactive mode, relaxation creates a separate optimization timeline. When source and relaxation trajectories both exist, choose Source frames or Relaxation · calculator from the timeline selector. Playback, Space, and the Left/Right Arrow keys control only the selected timeline; the other timeline remains visible in a separate row.

Constraints

ASE constraints remain authoritative during interactive transforms while Apply constraints is enabled.

FixedLine

The atom moves only along its permitted line.

FixedLine movement

v_ase gui examples/readme_scene_assets/fixedline.traj --show-bonds --interactive

FixedPlane And FixScaled

FixedPlane atoms move within their displayed plane. VASP selective dynamics read as FixScaled are displayed from their allowed fractional directions.

FixedPlane movement

v_ase gui examples/readme_scene_assets/fixedplane.traj --show-bonds --interactive

FixAtoms

Fixed atoms keep their element color and use a distinct constrained surface treatment. They remain visible without looking selected.

Hookean

Hookean constraints show the inactive cutoff, threshold, and active spring state. The spring engages only after the constrained distance passes rt.

Hookean constraint

Hookean motion

v_ase gui examples/readme_scene_assets/hookean.traj --show-bonds --interactive

Editing And Measurement

Move and angle increments, transform pivot, constraints, cell transforms, supercells, and wrapping are available from Structure. Translate atoms moves every frame while keeping the cell fixed; enter either Cartesian values in Angstrom or fractional cell coordinates, then select Apply Translation. Axis-locked rotation can show low-strain commensurate cell-boundary angles and optionally snap to them.

Rotate mode

Ferrocene rotation

One through four ordered selections are marked a1 through a4. The viewport shows point information, a1-a2 distance, the a1-a2-a3 angle centered on a2, or the signed a1-a2-a3-a4 torsion. Distances report direct and minimum-image-convention (MIC) values; selecting a displayed supercell image also reports its unit-cell-mapped distance. Angles and torsions use the displayed coordinates without an additional MIC value. Larger selections show the total followed by counts for each atom label. Hovered-atom metadata is displayed separately.

Displacement Analysis

The Analysis workspace displays per-atom displacement vectors for a trajectory. Compare the current frame with the previous frame or a specific frame, enable or disable minimum-image correction, and choose 3D or flat 2D arrows. Vector scale, thickness, and color are display-only controls. Particle IDs are used when present; otherwise equal-size frames use stable atom indices.

Structure, View, And Rendering

The control panel has five workspaces: Inspect, Structure, Analysis, View, and Export. Structure keeps related scientific controls together: Atoms & Appearance, Cell & Replication, Cell Transform, Atom Transform, Constraints, Bonding, and Relaxation. Use the section selector to jump directly to a group.

View provides:

  • orthographic or perspective projection;
  • a true-white viewport background by default, with balanced modeling light for clear element colors and a dark background option;
  • 3D spheres/cylinders or 2D atoms/flat bonds;
  • live atomic scale in pixels per Angstrom;
  • unit cell, axes, grid, and overlay controls.

Structure > Atoms & Appearance controls per-label TYPE, label, visibility, color, radius, material, atom smoothness, and anti-aliasing. New documents use a 0.60x atom radius. Material presets are Standard, Metal, and Rubber. In View, a preset applies to a complete label group. In Edit, selected atoms can use independent materials and can be merged into an existing label by entering that exact label. Chemical TYPE remains synchronized with ASE while labels control visual grouping.

The top-bar renderer switches among Modeling, Studio Sun, and Sun + Soft Shadow. Sun intensity, source, target, and viewport handles are editable.

Structure > Bonding supports automatic element-radius inference, explicit label-pair specifications, and manual atom-index pairs. Each pair specification has an enable checkbox plus minimum and maximum distances in Angstrom. Changes apply immediately; no separate apply step is required. Thickness, cylinder/flat style, custom color, and midpoint-split atom colors are configurable. New documents use a 0.25 A bond diameter. Interactive bonds form and break during atom transforms.

Bond pair specifications

Export And Save

Option Contents
Export POSCAR Current atomic structure in VASP format
Export ASE Pickle Current ASE Atoms, labels, constraints, arrays, and valid SinglePointCalculator results
Export Image PNG using the Preview Area camera and crop
Export Video Complete trajectory as MOV or AVI, with optional N× interpolation and MIC
Export Blender Optimized Python scene with atoms, bonds, camera, Sun, optional cell, and trajectory animation
Export 3DM Instanced Rhino geometry, metadata, and saved views
Export OBJ OBJ/MTL plus camera and metadata JSON in a ZIP
Save Project Self-contained .vase structure/trajectory and complete visual state
Save Settings Reusable appearance, bonds, camera, lighting, quality, and supercell JSON

Preview Area uses the exact image/video aspect ratio, camera, crop, display, and lighting profile used for export. The frame stays fixed while orbit and zoom change the structure inside it. Unit cell, grid, axes, background, atom smoothness, and renderer are independently selectable for output.

When the browser supports the system save picker, v_ase asks for the destination before generating a structure, image, video, Blender, Rhino, OBJ, project, or settings export. Canceling the picker cancels the export before rendering or encoding starts.

.vase files are self-contained; reopening one does not require the original structure file. Opening an ordinary structure from an active workspace keeps the current visual settings. Opening a .vase project restores its saved state.

Rhino export requires:

python -m pip install "v_ase-gui[rhino]"

OBJ export has no optional dependency.

Python

from ase.build import molecule
from v_ase.visualize import view

atoms = molecule("H2O")
view(atoms)  # lightweight visualization mode

To edit and return an ASE object:

edited = view(atoms, viz_only=False)
print(edited.positions)

view() works with one Atoms, a sequence of frames, or a supported file path. view_edit() remains as a compatibility alias for interactive mode.

File Formats

File type is normally detected automatically. Common inputs include POSCAR, CONTCAR, VASP files, XDATCAR, vasprun.xml, XYZ/extxyz, ASE .traj, LAMMPS dump/data files, and .vase.

Repeated POSCAR/CONTCAR species blocks remain separate visual groups. For example, O Cu O with counts 1 14 5 appears as O1, Cu, and O2. The ASE chemical symbols remain unchanged, so calculations and exports continue to use the correct elements.

For an ambiguous filename, select the reader explicitly:

v_ase gui ABCD --format POSCAR
v_ase gui ABCD --format XDATCAR
v_ase gui ABCD --format vasprun.xml
v_ase gui ABCD --format lammpstrj
v_ase gui ABCD --format extxyz
v_ase gui ABCD --format data

Use --index : for all frames, --index -1 for the last frame, or an integer for one frame.

Help

v_ase --help
v_ase gui --help

Troubleshooting

Open the item that matches the visible symptom.

v_ase command is not found

Use the same Python environment for installation and execution:

python -m pip install --upgrade v_ase-gui
python -m v_ase.cli --version

If python -m v_ase.cli works but v_ase does not, reopen the terminal after activating the environment and check that its Python scripts directory is on PATH. A clean virtual environment is the fastest way to isolate broken metadata from manually installed development packages.

The browser does not open automatically

The terminal prints a complete local URL when automatic launch is unavailable. Ctrl+click the URL, or copy the text beginning with http:// into a browser. Keep the terminal process running while using the application.

WSL reports gio: ... Operation not supported

Current v_ase releases detect WSL and try the Windows default browser through wslview, PowerShell, or Explorer instead of Linux gio. The message can still appear with an older v_ase release or when Windows interoperability is disabled. In that case, use the printed URL:

(base) giyeok@DESKTOP-XXXX:~$ v_ase gui
gio: http://127.0.0.1:58039/workspace?workspace_id=xxxx&session_id=xxxx: Operation not supported

Ctrl+click the URL or paste it into Chrome, Edge, Firefox, or another Windows browser. The identifiers above are intentionally masked; use the complete URL printed by your own session.

For better large-file performance in WSL, keep trajectories in the Linux filesystem (for example under ~/data) instead of /mnt/c/....

Run v_ase on a remote server

Keep the v_ase HTTP server bound to the remote loopback interface and use SSH local port forwarding. From the local computer:

ssh -L 58039:127.0.0.1:58039 USER@SERVER

Then, in that SSH session:

v_ase gui FILE --port 58039 --no-browser

Open the printed http://127.0.0.1:58039/... URL in the local browser. Closing the v_ase browser tab releases the blocking command. Do not expose the port directly to the public network; the SSH tunnel carries it securely.

A file is not detected correctly

Specify the reader explicitly:

v_ase gui FILE --format POSCAR
v_ase gui FILE --format vasprun.xml
v_ase gui FILE --format lammpstrj
v_ase gui FILE --format data

Use --index : for the complete trajectory or --index -1 for its final frame.

The page is blank or says the session is unavailable
  • Confirm that the original v_ase gui process is still running.
  • Open the exact URL printed by that process; old session URLs cannot be reused.
  • Reload once after the terminal reports that the local server is ready.
  • If the selected port is occupied, choose another one with --port.
Export does not show a save picker, or video export fails

Chrome and Edge can show the native save picker on a local secure context. Other browsers may save directly to their configured Downloads directory. Canceling a supported picker stops export before rendering or encoding.

Video export requires a trajectory with at least two frames and browser support for MediaRecorder. MOV/AVI conversion uses the bundled imageio-ffmpeg dependency. Interpolation requires stable atom ordering, chemical types, labels, and atom count between adjacent frames. With N source frames and an interpolation multiplier m, output contains (N - 1) × m + 1 frames.

A large trajectory opens or plays slowly
  • Use the default View mode unless atom editing is required.
  • In WSL, keep the file in the Linux filesystem rather than /mnt/c/....
  • Keep browser hardware acceleration enabled.
  • Close unused v_ase tabs; inactive tabs pause rendering, but their structures remain in memory.
  • LAMMPS dump files use the optimized numeric loader automatically in View.
Optional export tools are unavailable

Rhino 3DM export requires:

python -m pip install "v_ase-gui[rhino]"

OBJ export has no optional dependency. Blender export generates a Python scene script; run it with a supported Blender installation if Blender is not found automatically.

Installation reports an unrelated package metadata error

An error mentioning a package version of None generally comes from another manually installed or incomplete package in that Python environment. Verify the environment with python -m pip check, repair or uninstall the named package, or install v_ase in a clean environment:

python -m venv .venv
python -m pip install --upgrade pip
python -m pip install v_ase-gui

Report reproducible problems at GitHub Issues.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

v_ase_gui-0.0.92.tar.gz (32.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

v_ase_gui-0.0.92-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file v_ase_gui-0.0.92.tar.gz.

File metadata

  • Download URL: v_ase_gui-0.0.92.tar.gz
  • Upload date:
  • Size: 32.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for v_ase_gui-0.0.92.tar.gz
Algorithm Hash digest
SHA256 8ed9469043276f96513c279339ac3736f2103bba566ae313c45173b24ce79881
MD5 61af463520d85da5542c28f695b32c21
BLAKE2b-256 6604ba4232531feb3261c08d4c99d8389885e624bf428cb2d49fce6f5bfe26c8

See more details on using hashes here.

File details

Details for the file v_ase_gui-0.0.92-py3-none-any.whl.

File metadata

  • Download URL: v_ase_gui-0.0.92-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for v_ase_gui-0.0.92-py3-none-any.whl
Algorithm Hash digest
SHA256 95589c0414edc7f2fbeb3c3b50d4a7db446d589f5d1a40caf94fbf48bf858048
MD5 9a449a585f04ea67cd985793f1f8c228
BLAKE2b-256 523cd8402d8496423cd876f59988ff78b21946662fbe6559a20171f48aea734a

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.2

2 files

0.3.1

2 files

0.2.36

2 files

0.2.35

2 files

0.2.34

2 files

0.2.33

2 files

0.2.31

2 files

0.2.30

2 files

0.2.29

2 files

0.2.28

2 files

0.2.27

2 files

0.2.26

2 files

0.2.25

2 files

0.2.24

2 files

0.2.23

2 files

0.2.22

2 files

0.2.21

2 files

0.2.20

2 files

0.2.19

2 files

0.2.18

2 files

0.2.17

2 files

0.2.16

2 files

0.2.15

2 files

0.2.14

2 files

0.2.13

2 files

0.2.12

2 files

0.2.11

2 files

0.2.10

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.1.18

2 files

0.1.17

2 files

0.1.16

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.0.120

2 files

0.0.119

2 files

0.0.118

2 files

0.0.117

2 files

0.0.116

2 files

0.0.115

2 files

0.0.114

2 files

0.0.113

2 files

0.0.112

2 files

0.0.111

2 files

0.0.110

2 files

0.0.109

2 files

0.0.108

2 files

0.0.107

2 files

0.0.106

2 files

0.0.105

2 files

0.0.104

2 files

0.0.103

2 files

0.0.102

2 files

0.0.101

2 files

0.0.100

2 files

0.0.99

2 files

0.0.98

2 files

0.0.97

2 files

0.0.96

2 files

0.0.95

2 files

0.0.94

2 files

0.0.93

2 files

This release

0.0.92 This release

2 files

0.0.91

2 files

0.0.90

2 files

0.0.89

2 files

0.0.88

2 files

0.0.87

2 files

0.0.86

2 files

0.0.85

2 files

0.0.84

2 files

0.0.83

2 files

0.0.82

2 files

0.0.81

2 files

0.0.80

2 files

0.0.79

2 files

0.0.78

2 files

0.0.77

2 files

0.0.76

2 files

0.0.75

2 files

0.0.74

2 files

0.0.73

2 files

0.0.72

2 files

0.0.71

2 files

0.0.69

2 files

0.0.68

2 files

0.0.67

2 files

0.0.66

2 files

0.0.65

2 files

0.0.64

2 files

0.0.63

2 files

0.0.62

2 files

0.0.61

2 files

0.0.60

2 files

0.0.59

2 files

0.0.58

2 files

0.0.57

2 files

0.0.56

2 files

0.0.55

2 files

0.0.54

2 files

0.0.53

2 files

0.0.52

2 files

0.0.51

2 files

0.0.50

2 files

0.0.49

2 files

0.0.48

2 files

0.0.47

2 files

0.0.46

2 files

0.0.45

2 files

0.0.44

2 files

0.0.43

2 files

0.0.42

2 files

0.0.41

2 files

0.0.40

2 files

0.0.39

2 files

0.0.38

2 files

0.0.37

2 files

0.0.36

2 files

0.0.35

2 files

0.0.34

2 files

0.0.33

2 files

0.0.32

2 files

0.0.30

2 files

0.0.29

2 files

0.0.28

2 files

0.0.27

2 files

0.0.26

2 files

0.0.25

2 files

0.0.24

2 files

0.0.23

2 files

0.0.22

2 files

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

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