Dash components for the Materials Project, providing interactive UI elements to access and visualize materials data. Current version is 0.5.1, with releases triggered by Git tags via CI/CD. The library wraps common Materials Project API features into Dash components.
pip install dash-mp-componentsVerified import paths — ran on the pinned version, not inferred.
Minimal Dash app with an MPElementCard showing silicon data. Requires a valid Materials Project API key.
Use 'from dash_mp_components import ComponentName' rather than any nested submodule imports.
Set the MP_API_KEY environment variable or pass api_key as a prop to each component.
Set the MP_API_KEY environment variable instead of passing api_key as a prop.
Use Dash callbacks to rebuild the component layout when data dependencies change.