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

Uploaded Source

Built Distribution

chemiscope-0.3.2-py2.py3-none-any.whl (823.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: chemiscope-0.3.2.tar.gz
  • Upload date:
  • Size: 819.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for chemiscope-0.3.2.tar.gz
Algorithm Hash digest
SHA256 f7221ce7a191e19e58914dcd14c64335febd75b108d3560b2479e49090aacff1
MD5 0cda90a97daf1b77424e197cf9acb540
BLAKE2b-256 f4f7f5151896114be7932bfcd7c45db553a5dfe64b99f3c5f8d3100b6325a88d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chemiscope-0.3.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 823.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for chemiscope-0.3.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aa881702631f31c1272eae838c7c1ab6ada3d2a066229a08a332b8fcf0e2f0c6
MD5 f49be114779215eb3d3fd97c24086bb0
BLAKE2b-256 93d657d0337027948a5ce29b4742efdc46685dc887eab700b3f5395e7acc2b8b

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