{"id":23505,"library":"dash-mp-components","title":"Dash MP Components","description":"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.","status":"active","version":"0.5.1","language":"python","source_language":"en","source_url":"https://github.com/materialsproject/dash-mp-components","tags":["dash","materials-project","components","data-visualization"],"install":[{"cmd":"pip install dash-mp-components","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core framework required to run Dash apps","package":"dash","optional":false},{"reason":"Provides Materials Project API client for data access","package":"mp-api","optional":false}],"imports":[{"wrong":"from dash_mp_components import MPElementCard","symbol":"MPElementCard","correct":"from dash_mp_components import MPElementCard"}],"quickstart":{"code":"import dash\nfrom dash import html\nfrom dash_mp_components import MPElementCard\n\napp = dash.Dash(__name__)\napp.layout = html.Div([\n    MPElementCard(element='Si', api_key=os.environ.get('MP_API_KEY', 'your-key-here'))\n])\n\nif __name__ == '__main__':\n    app.run_server(debug=True)","lang":"python","description":"Minimal Dash app with an MPElementCard showing silicon data. Requires a valid Materials Project API key."},"warnings":[{"fix":"Use 'from dash_mp_components import ComponentName' rather than any nested submodule imports.","message":"Version 0.5.0+ changed the import path from 'dash_mp_components' to a different package structure; ensure you use the correct top-level import as shown in the docs.","severity":"breaking","affected_versions":">=0.5.0"},{"fix":"Set the MP_API_KEY environment variable or pass api_key as a prop to each component.","message":"Components require a Materials Project API key (MP_API_KEY environment variable or 'api_key' prop). Without it, components will fail silently or show an error state.","severity":"gotcha","affected_versions":"all"},{"fix":"Set the MP_API_KEY environment variable instead of passing api_key as a prop.","message":"The 'api_key' prop is deprecated in favor of using the global key via the environment variable. Future versions may remove the prop entirely.","severity":"deprecated","affected_versions":">=0.5.0"},{"fix":"Use Dash callbacks to rebuild the component layout when data dependencies change.","message":"Components are not reactive to prop changes after initialization; you must recreate the component to update data.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.5.1':23 'access':15 'api':38 'ci/cd':31 'common':35 'compon':3,5,42,47 'current':20 'dash':1,4,41,43 'data':19,49 'data-visu':48 'element':13 'featur':39 'git':28 'interact':11 'librari':33 'materi':8,18,36,45 'materials-project':44 'mp':2 'project':9,37,46 'provid':10 'releas':25 'tag':29 'trigger':26 'ui':12 'version':21 'via':30 'visual':17,50 'wrap':34","created_at":"2026-05-01T08:08:08.091755+00:00","updated_at":"2026-05-01T08:08:08.091755+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmp11w872ru/venv/lib/python3.12/site-packages/dash_mp_components/__init__.py\", line 7, in <module>\n    import dash as _dash\nModuleNotFoundError: No module named 'dash'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.5.2","cli_name":"","cli_version":null,"type":"library","homepage":"https://materialsproject.org/","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/dash-mp-components/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}