A fully serverless single page app for interactively browsing optimade clients (as per https://www.optimade.org/providers-dashboard/).
Intended to be a lightweight and more maintainable solution to: https://github.com/aiidalab/ipyoptimade
npm install
npm run dev
http://localhost:5173/mc-react-optimade-client/The querier is also exported as an AnyWidget that can be used in a Jupyter enviroment.
pip install widget-optimade-clientUsage:
from optimadewidget.optimade_widget import OptimadeQuerierWidget
w = OptimadeQuerierWidget() # or provider="mcloud", db="mc3d-pbesol-v2", or base_url="https://..."
w
w.selected_result # raw OPTIMADE entry of the selected structurepip install "widget-optimade-client[aiidalab]" provides a structure importer for
aiidalab_widgets_base.StructureManagerWidget (exposes title and an ase.Atoms structure trait):
from optimadewidget.aiidalab import OptimadeStructureImporter
from aiidalab_widgets_base import StructureManagerWidget
StructureManagerWidget(importers=[OptimadeStructureImporter(title="OPTIMADE")])Disordered structures (partial occupancies, alloys, vacancies) cannot be imported and show an error message.
pnpm install
pnpm build:widget # writes optimadewidget/widget-dist/, which the wheel must include
pip install -e ".[aiidalab]"
pytest tests