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

Uploaded Source

Built Distribution

chemiscope-0.3.5-py2.py3-none-any.whl (823.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: chemiscope-0.3.5.tar.gz
  • Upload date:
  • Size: 820.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.10

File hashes

Hashes for chemiscope-0.3.5.tar.gz
Algorithm Hash digest
SHA256 dc75dacb780fd63b4d5c522248c76a2be95fbc37ba5a70ad02c41ea6484449a8
MD5 be5e280a0ae44218e2e78bccbe5b2ca5
BLAKE2b-256 4048785c31be94cbab793bae9961aa4e06635f718490564fa3d2728c319839b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chemiscope-0.3.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 823.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.10

File hashes

Hashes for chemiscope-0.3.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 104441dfa92f6d7c52fb5b182773376f60e43bb4464492b17e4ab45a9e07db5d
MD5 2abe39c1c9a84b615125a7020d63f945
BLAKE2b-256 b893ce57e4596f93b6b859da9fcc129d61bee2f1f46d9368cc5f0c4065010546

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