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 can also be stk objets, e.g.
# frames = [stk.BuildingBlock(smiles="NCCN")]
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 can also be stk objets, e.g.
# frames = [stk.BuildingBlock(smiles="NCCN")]
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chemiscope-0.9.0.tar.gz.
File metadata
- Download URL: chemiscope-0.9.0.tar.gz
- Upload date:
- Size: 4.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0c483c9ecdf34278a08d474045fcc4ae649b852d16e37b89aa20b37195895fe
|
|
| MD5 |
1b405f5db86367ae79254bc6cacc6fb9
|
|
| BLAKE2b-256 |
20218102a3a32e897f15daea04578707c0d54c834adc6824a2896a85598328f4
|
File details
Details for the file chemiscope-0.9.0-py3-none-any.whl.
File metadata
- Download URL: chemiscope-0.9.0-py3-none-any.whl
- Upload date:
- Size: 4.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbda7b918501c449e3e051e193ae3038bd27dd3c20052c71d9e70832d073e697
|
|
| MD5 |
4ff2e13bd81106d431cf2a2adee0b48b
|
|
| BLAKE2b-256 |
9b257b3db376cff8493a3873a494f8efed448707deb68b30a589cfb641f7d229
|