chemiscope-0.5.2
توضیحات
Helpers to work with the chemiscope interactive structure/property explorer for materials and molecules
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | chemiscope-0.5.2 |
| نام | chemiscope |
| نسخه کتابخانه | 0.5.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Guillaume Fraux |
| ایمیل نویسنده | guillaume.fraux@epfl.ch |
| آدرس صفحه اصلی | https://chemiscope.org |
| آدرس اینترنتی | https://pypi.org/project/chemiscope/ |
| مجوز | BSD-3-Clause |
# Python helpers for chemiscope
This package contains Python code to help generate input files for the
[chemiscope](https://chemiscope.org) default visualizer, and integrate
chemiscope with jupyter notebooks.
## Installation
You should use pip to install this package:
```bash
pip install chemiscope
```
This installs both a `chemiscope-input` command line tool, and the `chemiscope`
package.
## Usage
To create a new chemiscope input file:
```python
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:
```python
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)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
| <9,>=7 | ipywidgets |
نحوه نصب
نصب پکیج whl chemiscope-0.5.2:
pip install chemiscope-0.5.2.whl
نصب پکیج tar.gz chemiscope-0.5.2:
pip install chemiscope-0.5.2.tar.gz