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.4.2.tar.gz (852.1 kB view details)

Uploaded Source

Built Distribution

chemiscope-0.4.2-py2.py3-none-any.whl (855.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: chemiscope-0.4.2.tar.gz
  • Upload date:
  • Size: 852.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.6

File hashes

Hashes for chemiscope-0.4.2.tar.gz
Algorithm Hash digest
SHA256 f074aef3579551af0396e6fe18b0da0e409ba3ed19c5b5b79b3b3543eb5fb8c5
MD5 b38c440b46a1971fa71aee2f345d23e4
BLAKE2b-256 08da7444f1d5fad1e379869304e161db8a475fd9ac02886736e4cd7bcac0ba83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chemiscope-0.4.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 855.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.6

File hashes

Hashes for chemiscope-0.4.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 653193cf13dc8998f7b77a6b1bb72b379a0958bb5d7ede44caba7635f504e22b
MD5 ea37664e3d14400b989b8ca4d5fd48af
BLAKE2b-256 839293691a84da4788da47de633283eee078f95b2b534c0a3aa44796ab56293c

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