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
```python
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](https://image.ibb.co/fjnHco/structure.gif "Using the StructureUploadWidget.")

### Codes

Selecting codes
```python
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](https://image.ibb.co/gSFFf8/codes.gif "Using the CodeDropDown.")

## 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.

Files for aiida-widgets, version 0.2.0a0
Filename, size File type Python version Upload date Hashes
Filename, size aiida_widgets-0.2.0a0-py2.py3-none-any.whl (10.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes

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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page