AiiDA widgets for AiiDA Lab applications
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
aiidalab_widgets_base
miscellaneous/logos
.gitignore
.pre-commit-config.yaml
LICENSE
README.md
__init__.py
cod.ipynb
codes.ipynb
install.sh
metadata.json
setup.json
setup.py
start.py
structures.ipynb
structures_multi.ipynb

README.md

aiidalab-widgets-base

Reusable widgets for applications in the AiiDA Lab.

Installation

aiidalab_widgets_base python package:

pip install aiidalab-widgets-base 

aiidalab-widgets-base AiiDA Lab application:
Via the app manager as usual.

Usage

Using the widgets usually just involves importing and displaying them. For demos, have a look at the jupyter notebooks (.ipynb extension) in this folder.

Structures

Uploading structures

from aiidalab_widgets_base import StructureUploadWidget
from IPython.display import display

widget = StructureUploadWidget()
# Enforce node format to be CifData:
# widget = StructureUploadWidget(node_class='CifData')
display(widget)

Demo

Codes

Selecting codes

from aiidalab_widgets_base import CodeDropdown
from IPython.display import display

# Select from installed codes for 'zeopp.network' input plugin
dropdown = CodeDropdown(input_plugin='zeopp.network')
display(dropdown)

dropdown.selected_code  # returns selected code

Demo

License

MIT

Contact

aiidalab@materialscloud.org

Acknowledgements

This work is supported by the MARVEL National Centre for Competency in Research funded by the Swiss National Science Foundation, as well as by the MaX European Centre of Excellence funded by the Horizon 2020 EINFRA-5 program, Grant No. 676598.

MARVEL MaX