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 structures using ase. You can also use other structure providers such as
# stk, MDAnalysis, …
structures = 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", structures=structures, properties=properties
)

To display a chemiscope widget inside a jupyter notebook:

import chemiscope
import ase.io

structures = ase.io.read("structures.xyz", ":")

properties = {
    "<property name>": [3, 4, 2, 8, 9, 10],
}

chemiscope.show(structures=structures, 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-1.0.3.tar.gz (4.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chemiscope-1.0.3-py3-none-any.whl (4.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chemiscope-1.0.3.tar.gz
  • Upload date:
  • Size: 4.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for chemiscope-1.0.3.tar.gz
Algorithm Hash digest
SHA256 1d784e21ed5241c19aab31af9822f2ce0b0f136212e1bf198f0dd13abffae144
MD5 f7c8d0cc59afdfa7b82a86a54939d8a4
BLAKE2b-256 b3713e8108b8867aea66fd806c89d6c6c10b396735548e9fa5b47593341a5787

See more details on using hashes here.

File details

Details for the file chemiscope-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: chemiscope-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for chemiscope-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fd0c7d8d8d96a4d97792ad5c652cda8c522f1471576713420f8a7f2fac9c5d3a
MD5 12deb047c1e4dcbbdd2984309a6be6e8
BLAKE2b-256 9de328a28f69f810cd0e22a967a508dceb99f8dd99fdf129ec6bef4d635d6362

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page