Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Tests Visual Regression Test Status Release pre-commit.ci status arXiv link

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
Launch Codespace
basic_hello_structure.py
Uses StructureMoleculeComponent to show a simple pymatgen structure
Launch Codespace
basic_hello_structure_interactive.py
Adds a button to the basic_hello_structure.py to toggle between two structures interactively
Launch Codespace
basic_hello_world.py
Bare-bones example showing how to render the text "Hello scientist!" in Dash app
Launch Codespace
diffraction.py
Demonstrates capabilities of the XRayDiffractionComponent component
Launch Codespace
diffraction_dynamic.py
Adds a button to diffraction.py to load a new structure on the fly
Launch Codespace
diffraction_empty.py
Shows XRayDiffractionComponent can be mounted without a passing structure
Launch Codespace
kwarg_inputs.py
Shows off boolean input (aka toggle), matrix input and slider input components
Launch Codespace
phase_diagram.py
Combines MPRester.get_entries_in_chemsys() and the PhaseDiagram component to plot the Li-O-Co convex hull
Launch Codespace
pourbaix.py
Combines MPRester.get_pourbaix_entries() and the PourbaixDiagramComponent to plot the Fe-CO Pourbaix diagram
Launch Codespace
structure.py
Show cases multiple layout options for the StructureMoleculeComponent
Launch Codespace
structure_magnetic.py
Plots a structure with magnetic moments
Launch Codespace
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.
Launch Codespace
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.
Launch Codespace
transformations.py
Combines StructureMoleculeComponent and AllTransformationsComponent to apply interactive structure transformations
Launch Codespace
transformations_minimal.py
Shows how to restrict the types of allowed transformations
Launch Codespace
write_structure_screenshot_to_file.py
Shows to save interactive structure views as image files
Launch Codespace

Team and Contribution Policy

The Crystal Toolkit Development Team includes:

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crystal_toolkit-2026.8.11rc3.dev0.tar.gz (16.0 MB view details)

Uploaded Source

Built Distribution

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

crystal_toolkit-2026.8.11rc3.dev0-py3-none-any.whl (16.3 MB view details)

Uploaded Python 3

File details

Details for the file crystal_toolkit-2026.8.11rc3.dev0.tar.gz.

File metadata

File hashes

Hashes for crystal_toolkit-2026.8.11rc3.dev0.tar.gz
Algorithm Hash digest
SHA256 5253344a32319bfa1a545ca66211d6353cfdbfb225deee2a98b9a914da95892b
MD5 9ba27971023112ff30ba1e6e47b73189
BLAKE2b-256 f1e4cae8420777fe154cdb44f9c568a94aed5831a37e7a6a08aa12bb17308143

See more details on using hashes here.

File details

Details for the file crystal_toolkit-2026.8.11rc3.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for crystal_toolkit-2026.8.11rc3.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb50a2c1787de520f46cdba2dc641704f1a6263d544187fe434a0aeddd9d551d
MD5 38198bbe5901f5d25db387a5e167ee40
BLAKE2b-256 238dc291302cbc28e9c371a91b0e878c2cbfed352b9c3f21f904358ac34648e7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2026.8.11rc3.dev0 This release

2 files

2026.7.20

2 files

2026.6.9

2 files

2026.4.30

2 files

2026.1.22

2 files

2025.12.16

2 files

2025.10.8

2 files

2025.7.31

2 files

2024.10.22

2 files

2023.11.3

2 files

2023.10.24

2 files

2023.10.9

2 files

2023.8.9

2 files

2023.7.8

2 files

2023.6.26

2 files

2023.6.1

2 files

2023.5.13

2 files

2023.4.6

2 files

2023.2.28.1

2 files

2023.2.1

2 files

2023.1.31

2 files

2022.11.29

2 files

2022.11.18

2 files

2022.11.17

2 files

2022.10.27

2 files

2022.10.3

2 files

2022.8.19

2 files

2022.8.12

2 files

2022.7.28

2 files

2022.7.25

2 files

2022.6.8

2 files

2022.4.29

2 files

2022.4.19

2 files

2022.2.11.1

2 files

2022.2.11

2 files

2022.2.1

2 files

2022.1.21.1

2 files

2022.1.21

2 files

2021.12.22.1

2 files

2021.12.22

2 files

2021.12.21

2 files

2021.12.14

2 files

2021.10.25

2 files

2021.10.21

2 files

2021.10.11

2 files

2021.4.29

2 files

2021.4.2

2 files

2021.4.1

2 files

2021.3.31

2 files

2021.3.25

2 files

2021.1.9

2 files

2020.11.1

2 files

2020.10.9

2 files

2020.10.7

2 files

2020.9.28.1

2 files

2020.9.28

2 files

2020.9.3

2 files

2020.6.4

2 files

2020.6.3

2 files

2020.5.21

2 files

2020.2.5

2 files

2020.1.31

2 files

2020.1.28

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page