Skip to main content

Helpers to work with the chemiscope interactive structure/property explorer for materials and molecules

Project description

Python helpers for chemiscope

This package contains Python code to help generate input files for the chemiscope default visualizer, and integrate chemiscope with jupyter notebooks.

Installation

You should use pip to install this package:

pip install chemiscope

This installs both a chemiscope-input command line tool, and the chemiscope package.

Usage

To create a new chemiscope input file:

import chemiscope
import ase.io

# read frames using ase
frames = ase.io.read("structures.xyz", ":")

# add additional properties to display
properties = {
    "<property name>": {
        target: "atom",
        values: [3, 4, 2, 8, 9, 10],
    }
}

chemiscope.write_input("my-input.json.gz", frames=frames, properties=properties)

To display a chemiscope widget inside a jupyter notebook:

import chemiscope
import ase.io

# read frames using ase
frames = ase.io.read("structures.xyz", ":")

# add additional properties to display
properties = {
    "<property name>": [3, 4, 2, 8, 9, 10],
}

chemiscope.show(frames=frames, properties=properties)

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

chemiscope-0.5.2.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

chemiscope-0.5.2-py2.py3-none-any.whl (2.7 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file chemiscope-0.5.2.tar.gz.

File metadata

  • Download URL: chemiscope-0.5.2.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for chemiscope-0.5.2.tar.gz
Algorithm Hash digest
SHA256 ca3a090b34968772128c669d6bfa8410754c390243fadb82fdc4bc125a6935c3
MD5 6f3a99a248a7579bb4b1ae9de5c0b3f3
BLAKE2b-256 91b231ae07ac86210e88322a525049117d05f4d9a6056fb1d0bbabfdd963400c

See more details on using hashes here.

File details

Details for the file chemiscope-0.5.2-py2.py3-none-any.whl.

File metadata

  • Download URL: chemiscope-0.5.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for chemiscope-0.5.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b352795da28c9c0c1f1c52ff0b739ecc5871faa55d967f18eea031caf895a52f
MD5 d4ad7616bf3ffae915d633bd6f439ae0
BLAKE2b-256 0b7f93a65bc0ec193ca23840f439f5e721b32fe906be4fdbefd7bafd593f9764

See more details on using hashes here.

Supported by

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