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.1.tar.gz (2.6 MB view details)

Uploaded Source

Built Distributions

chemiscope-0.5.1-py2.py3-none-any.whl (2.6 MB view details)

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: chemiscope-0.5.1.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for chemiscope-0.5.1.tar.gz
Algorithm Hash digest
SHA256 0456276fcdbbe2b1669403141ce79d3e5a3ea5851727f33d369dcda4f46c0851
MD5 888edef289a453eb774c058259375a40
BLAKE2b-256 45b04a5fe210d25fa925a7deacf1ad8670787f998807869ddbad13885340431a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chemiscope-0.5.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for chemiscope-0.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 812fce25caf399a3adbe292aa923d45d6b87a5c7339b7d83541fcd066b7acaf4
MD5 a879a65816ef60c4f4b394556d664e93
BLAKE2b-256 a5454cb4811fc3dc8955db0144b24c80348e3e3fee5397f36f15c34216bbaa4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chemiscope-0.5.1-1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2d6808f5de635f22623a4bf5a801a45680c416b00c692d16cc56baf25c5007cb
MD5 1434aaf53941e61edc2e2536ed75a2ac
BLAKE2b-256 7fcd8602f5227de7426e85d0ac820aa18d96a4bfd2ac7e339302297d837f41f5

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