Skip to main content

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

Project description

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)

Project details


Download files

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

Source Distribution

x3dase-1.1.4.tar.gz (838.3 kB view details)

Uploaded Source

Built Distribution

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

x3dase-1.1.4-py3-none-any.whl (849.4 kB view details)

Uploaded Python 3

File details

Details for the file x3dase-1.1.4.tar.gz.

File metadata

  • Download URL: x3dase-1.1.4.tar.gz
  • Upload date:
  • Size: 838.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for x3dase-1.1.4.tar.gz
Algorithm Hash digest
SHA256 9a4a73e26240eadf6380998861fd81280db7c6281d6c09d11c5c2880f15a20a3
MD5 1712aae7820833d66ef5dc8f57052565
BLAKE2b-256 aea35fee9def8da13c805197549ef46e6a74fdf4b305496e83756123103031f1

See more details on using hashes here.

File details

Details for the file x3dase-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: x3dase-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 849.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for x3dase-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5f7b79a49073f445199dfff9eb0c1096fa0fb77c96d11be80994a25bf764eecb
MD5 589cda52e3fd13b40fa644c65dea9df4
BLAKE2b-256 0a18b215f1ff36a24d505da742cc13081f266812426985e3aecb3c5565986c49

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page