Crystal Toolkit is a web app framework from the Materials Project allowing Python
Project description
Crystal Toolkit
Citations
You can read more about Crystal Toolkit in our preprint, available here.
A citation.cff file is available or a BibTeX citation is as follows:
@article{horton2023crystal,
title={Crystal Toolkit: A Web App Framework to Improve Usability and Accessibility of Materials Science Research Algorithms},
author={Horton, Matthew and Shen, Jimmy-Xuan and Burns, Jordan and Cohen, Orion and Chabbey, Fran{\c{c}}ois and Ganose, Alex M and Guha, Rishabh and Huck, Patrick and Li, Hamming Howard and McDermott, Matthew and others},
journal={arXiv preprint arXiv:2302.06147},
year={2023}
}
If you use Crystal Toolkit, either for your own web apps, or by incorporating images generated by Crystal Toolkit in your work, please make sure to cite it appropriately! Citations are a good way to recognize the contributions of the Crystal Toolkit developers, and allow us to see how it has been used by the community.
Interested in contributing?
A current list of new contributor issues can be seen here. If you would like a new-contributor issue assigned, get in touch with project maintainers!
Status
Installation
pip install crystal-toolkit
Documentation
Documentation can be found at docs.crystaltoolkit.org.
Example Apps
Description | |
---|---|
bandstructure.py Demonstrates capabilities of the BandstructureAndDosComponent component |
|
basic_hello_structure.py Uses StructureMoleculeComponent to show a simple pymatgen structure |
|
basic_hello_structure_interactive.py Adds a button to the basic_hello_structure.py to toggle between two structures interactively |
|
basic_hello_world.py Bare-bones example showing how to render the text "Hello scientist!" in Dash app |
|
diffraction.py Demonstrates capabilities of the XRayDiffractionComponent component |
|
diffraction_dynamic.py Adds a button to diffraction.py to load a new structure on the fly |
|
diffraction_empty.py Shows XRayDiffractionComponent can be mounted without a passing structure |
|
kwarg_inputs.py Shows off boolean input (aka toggle), matrix input and slider input components |
|
phase_diagram.py Combines MPRester.get_entries_in_chemsys() and the PhaseDiagram component to plot the Li-O-Co convex hull |
|
pourbaix.py Combines MPRester.get_pourbaix_entries() and the PourbaixDiagramComponent to plot the Fe-CO Pourbaix diagram |
|
structure.py Show cases multiple layout options for the StructureMoleculeComponent |
|
structure_magnetic.py Plots a structure with magnetic moments |
|
matbench_dielectric_structure_on_hover.py Creates a scatter plot hooked up to a StructureMoleculeComponent and DataTable that show the structure and highlight the table row corresponding to the hovered scatter point. |
|
matbench_dielectric_datatable_xrd.py Renders a DataTable hooked up to a StructureMoleculeComponent and XRayDiffractionComponent so that hovering a table row will show the corresponding structure and its XRD pattern. |
|
transformations.py Combines StructureMoleculeComponent and AllTransformationsComponent to apply interactive structure transformations |
|
transformations_minimal.py Shows how to restrict the types of allowed transformations |
|
write_structure_screenshot_to_file.py Shows to save interactive structure views as image files |
Team and Contribution Policy
The Crystal Toolkit Development Team includes:
- Matthew Horton, lead
- François Chabbey for React components
- Jimmy Shen contributed pythreejs support, surface plotting, initial arrows/axes support, and various bug fixes
- Joey Montoya contributed Pourbaix component
- Shyam Dwaraknath for planned contributions for ellipsoid support and architectural design
- Donny Winston, assisted by Tyler Huntington, for helping embed Crystal Toolkit in a Django app
- Matt McDermott contributed phase diagram, X-ray Diffraction, X-ray Absorption Spectrum components
- Jason Munro contributed band structure component
- Janosh Riebesell contributed Phonon band structure component, 3 example apps, tests
- Stephen Weitzner contributed POV-Ray integration (in progress)
- Richard Tran for contributing plotly-powered Wulff shapes to pymatgen, which Crystal Toolkit uses
- Guy Moore for contributing magnetic moment visualization
- Steve Zeltmann for contributing electron diffraction
- Patrick Huck, releases, operations, bugfixes and POC for MP / MPContribs
New contributors are welcome, please see our Code of Conduct. If you are a new contributor please modify this README in your Pull Request to add your name to the list.
Future of This Repository
The Crystal Toolkit repository is home of an object-oriented Python framework for rendering materials science data based on the schema employed by the Materials Project.
The custom Plotly Dash components that power Crystal Toolkit are now maintained in a separate repository for ease of development, as well as the custom React components. These components were formerly included in the Crystal Toolkit repo, and are still considered part of Crystal Toolkit in spirit.
There are some important issues still to be resolved, as well as general improvements to documentation and test suite planned. Some currently-private code is also planned to be re-incorporated into the public Crystal Toolkit repo.
Acknowledgements
Thank you to all the authors and maintainers of the libraries Crystal Toolkit depends upon, and in particular pymatgen for crystallographic analysis and Dash from Plotly for their web app framework.
Thank you to the NERSC Spin service for hosting the app and for their technical support.
Contact
Please contact @mkhorton with any queries or add an issue on the GitHub Issues page.
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
File details
Details for the file crystal_toolkit-2023.8.9.tar.gz
.
File metadata
- Download URL: crystal_toolkit-2023.8.9.tar.gz
- Upload date:
- Size: 15.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d244aaee95bd7ba70e6907b5083ef8770b3c647eb813be4151c7fe6798b3ac6d |
|
MD5 | aa8434aafb30b66aa79ac0f8d497e5c7 |
|
BLAKE2b-256 | eb8ec86c1512b03e1aec1f0c7f2c4a3b45c0b24a5c81a87d44fd641e2a8e7f2f |
File details
Details for the file crystal_toolkit-2023.8.9-py3-none-any.whl
.
File metadata
- Download URL: crystal_toolkit-2023.8.9-py3-none-any.whl
- Upload date:
- Size: 15.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88ed76c7a1111df7d050cf0f71acb4897dff3963476aaf593a1ea2cf9c5aca6c |
|
MD5 | 2fb628f6cbcb5fe41a6e43006b7649c5 |
|
BLAKE2b-256 | 988a797209f390f3f24370b93b700979333326b3fdae2792b62210b69864d1a1 |