Skip to main content

AiiDA widgets for the [AiiDA Lab](aiidalab.materialscloud.org).

Project description

mc-aiida-widgets

Reusable AiiDA widgets for applications in the AiiDA Lab.

Installation

aiida_widgets python package:

pip install aiida-widgets

mc-aiida-widgets Materials Cloud app:
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 aiida_widgets 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 aiida_widgets 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

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
aiida_widgets-0.2.0a1-py2.py3-none-any.whl (8.5 kB) Copy SHA256 hash SHA256 Wheel py2.py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page