Skip to main content

x3dase

Python module for drawing and rendering atoms and molecules objects using X3DOM. X3dase can be used as a viewer for the molecule structure in the Jupyter notebook.

Functions:

  • Support all file-formats using by ASE, including cif, xyz, cube, pdb, json, VASP-out and so on.
  • Ball & stick
  • Space filling
  • Polyhedral
  • Isosurface
  • Show element and index
  • Measure distance and angle
  • Animation

For the introduction of ASE , please visit https://wiki.fysik.dtu.dk/ase/index.html

Author

Dependencies

  • Python
  • ASE
  • Skimage

Installation using pip

pip install --upgrade --user x3dase

Installation from source

You can get the source using git:

git clone https://github.com/superstar54/x3dase.git

Then add it to your PYTHONPATH and PATH. On windows, you can edit the system environment variables.

export PYTHONPATH=/path-to-x3dase:$PYTHONPATH

Examples

Draw molecule in Jupyter notebooks

<iframe src="examples/c2h6so.html" style="width:100%; height:300px;" ></iframe>

Shortcut

key function
b ball-and-stick model
s spacefilling model
p polyhedra model
1 view top
2 view front
3 view right
4 view element
5 view index

Show different models

Measure distance and angle between atoms

Using Ctrl + click to select atoms.

Selection measurement
single atom xyz position and atomic symbol
two atoms interatomic distance
three atoms three internal angles

Polyhedra for crystal

Isosurface for electron density

Animation

images = [atoms1, atoms2, atoms3]
X3D(images)

Metadata

Release files for x3dase 1.1.4

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

Source distribution (sdist)

Source distribution for x3dase 1.1.4
File Size Uploaded
x3dase-1.1.4.tar.gz 838.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for x3dase 1.1.4
File Interpreter ABI Platform
x3dase-1.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 1.7 MB

Release files / x3dase-1.1.4.tar.gz

Download URL x3dase-1.1.4.tar.gz
Size 838.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9a4a73e26240eadf6380998861fd81280db7c6281d6c09d11c5c2880f15a20a3
BLAKE2b-256 checksum
How to use checksums
aea35fee9def8da13c805197549ef46e6a74fdf4b305496e83756123103031f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Release files / x3dase-1.1.4-py3-none-any.whl

Download URL x3dase-1.1.4-py3-none-any.whl
Size 849.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f7b79a49073f445199dfff9eb0c1096fa0fb77c96d11be80994a25bf764eecb
BLAKE2b-256 checksum
How to use checksums
0a18b215f1ff36a24d505da742cc13081f266812426985e3aecb3c5565986c49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

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