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

Uploaded Source

Built Distribution

chemiscope-0.3.1-py2.py3-none-any.whl (797.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: chemiscope-0.3.1.tar.gz
  • Upload date:
  • Size: 794.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for chemiscope-0.3.1.tar.gz
Algorithm Hash digest
SHA256 9e5c88030322cd9a33345c8321da80ca7229c147f063ef6b0696c16ec4b07adb
MD5 691f69aa9c228f0f022740dd40576b79
BLAKE2b-256 63f18112a1aa5b4a52d0cc3f9163def630da5757d88a00b13739904c45954998

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chemiscope-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 797.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for chemiscope-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 df1d437db77389c826e62ede91f1e117a86ad9408547ef50ad3c2ff029185ae8
MD5 c0250a2749b31e2e4155db3e46ac661a
BLAKE2b-256 53d00080c70d8a4f773d459b38b927a4e8660456312462d2ec7a821283838086

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