aiidalab_widgets_base package#
Subpackages#
- aiidalab_widgets_base.data package
- Module contents
FunctionalGroupSelectorWidget
FunctionalGroupSelectorWidget.__annotations__
FunctionalGroupSelectorWidget.__init__()
FunctionalGroupSelectorWidget.__module__
FunctionalGroupSelectorWidget._all_trait_default_generators
FunctionalGroupSelectorWidget._descriptors
FunctionalGroupSelectorWidget._instance_inits
FunctionalGroupSelectorWidget._static_immutable_initial_values
FunctionalGroupSelectorWidget._trait_default_generators
FunctionalGroupSelectorWidget._traits
FunctionalGroupSelectorWidget.anchoring_atom
FunctionalGroupSelectorWidget.rotate()
LigandSelectorWidget
- Module contents
- aiidalab_widgets_base.utils package
- Submodules
- aiidalab_widgets_base.utils.exceptions module
- Module contents
PinholeCamera
StatusHTML
_StatusWidgetMixin
_StatusWidgetMixin.__annotations__
_StatusWidgetMixin.__init__()
_StatusWidgetMixin.__module__
_StatusWidgetMixin._all_trait_default_generators
_StatusWidgetMixin._clear_value()
_StatusWidgetMixin._descriptors
_StatusWidgetMixin._instance_inits
_StatusWidgetMixin._static_immutable_initial_values
_StatusWidgetMixin._trait_default_generators
_StatusWidgetMixin._traits
_StatusWidgetMixin.message
_StatusWidgetMixin.new_line
_StatusWidgetMixin.show_temporary_message()
ase2spglib()
find_ranges()
get_ase_from_file()
get_formula()
list_to_string_range()
predefine_settings()
string_range_to_list()
valid_arguments()
Submodules#
aiidalab_widgets_base.bug_report module#
Provide more user friendly error messages and automated reporting.
Authors:
Carl Simon Adorf <simon.adorf@epfl.ch>
- aiidalab_widgets_base.bug_report._convert_ansi_codes_to_html(msg)[source]#
Convert any ANSI codes (e.g. color codes) into HTML.
- aiidalab_widgets_base.bug_report._format_truncated_traceback(traceback, max_num_chars=2000)[source]#
Truncate the traceback to the given character length.
- aiidalab_widgets_base.bug_report._strip_ansi_codes(msg)[source]#
Remove any ANSI codes (e.g. color codes).
- aiidalab_widgets_base.bug_report.find_installed_packages(python_bin: Optional[str] = None) dict[str, str] [source]#
Return all currently installed packages.
- aiidalab_widgets_base.bug_report.install_create_github_issue_exception_handler(output, url, labels=None)[source]#
Install a GitHub bug report exception handler.
After installing this handler, kernel exception will show a generic error message to the user, with the option to file an automatic bug report at the given URL.
This is an example of how to use this function:
Example:#
```python output = ipw.Output() install_create_github_issue_exception_handler(
output, url=’aiidalab/aiidalab-qe#new’, labels=(‘bug’, ‘automated-report’))
- with output:
display(welcome_message, app_with_work_chain_selector, footer)
aiidalab_widgets_base.computational_resources module#
- class aiidalab_widgets_base.computational_resources.AiidaCodeSetup(**kwargs: Any)[source]#
Bases:
VBox
Class that allows to setup AiiDA code
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.computational_resources'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'code_setup': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'message': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.ValidateHandler object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method ValidateHandler.instance_init of <traitlets.traitlets.ValidateHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _observe_code_setup#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'message': ''}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'code_setup': <traitlets.traitlets.Dict object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'message': <traitlets.traitlets.Unicode object>}#
- _validate_default_calc_job_plugin#
- code_setup#
An instance of a Python dict.
One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.
Changed in version 5.0: Added key_trait for validating dict keys.
Changed in version 5.0: Deprecated ambiguous
trait
,traits
args in favor ofvalue_trait
,per_key_traits
.
- message#
A trait for unicode strings.
- class aiidalab_widgets_base.computational_resources.AiidaComputerSetup(**kwargs: Any)[source]#
Bases:
VBox
Inform AiiDA about a computer.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.computational_resources'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'computer_setup': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'message': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _observe_computer_setup#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'message': ''}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'computer_setup': <traitlets.traitlets.Dict object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'message': <traitlets.traitlets.Unicode object>}#
- computer_setup#
An instance of a Python dict.
One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.
Changed in version 5.0: Added key_trait for validating dict keys.
Changed in version 5.0: Deprecated ambiguous
trait
,traits
args in favor ofvalue_trait
,per_key_traits
.
- message#
A trait for unicode strings.
- class aiidalab_widgets_base.computational_resources.ComputationalResourcesWidget(**kwargs: Any)[source]#
Bases:
VBox
Code selection widget. Attributes:
value(code UUID): Trait that points to the selected UUID of the code instance. It can be set either to an AiiDA code UUID or to a code label. It is linked to the value trait of the self.code_select_dropdown widget.
codes(Dict): Trait that contains a dictionary (label => Code UUID) for all codes found in the AiiDA database for the selected plugin. It is linked to the ‘options’ trait of the self.code_select_dropdown widget.
allow_hidden_codes(Bool): Trait that defines whether to show hidden codes or not.
allow_disabled_computers(Bool): Trait that defines whether to show codes on disabled computers.
- __annotations__ = {}#
- __init__(description='Select code:', path_to_root='../', **kwargs)[source]#
Dropdown for Codes for one input plugin.
description (str): Description to display before the dropdown.
- __module__ = 'aiidalab_widgets_base.computational_resources'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'allow_disabled_computers': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'allow_hidden_codes': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'codes': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'default_calc_job_plugin': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'value': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.ValidateHandler object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method ValidateHandler.instance_init of <traitlets.traitlets.ValidateHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'allow_disabled_computers': False, 'allow_hidden_codes': False, 'comm': None, 'default_calc_job_plugin': '', 'value': ''}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'allow_disabled_computers': <traitlets.traitlets.Bool object>, 'allow_hidden_codes': <traitlets.traitlets.Bool object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'codes': <traitlets.traitlets.Dict object>, 'comm': <traitlets.traitlets.Instance object>, 'default_calc_job_plugin': <traitlets.traitlets.Unicode object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'value': <traitlets.traitlets.Unicode object>}#
- _validate_value#
- allow_disabled_computers#
A boolean (True, False) trait.
A boolean (True, False) trait.
- codes#
An instance of a Python dict.
One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.
Changed in version 5.0: Added key_trait for validating dict keys.
Changed in version 5.0: Deprecated ambiguous
trait
,traits
args in favor ofvalue_trait
,per_key_traits
.
- default_calc_job_plugin#
A trait for unicode strings.
- refresh(_=None)[source]#
Refresh available codes.
The job of this function is to look in AiiDA database, find available codes and put them in the code_select_dropdown widget.
- value#
A trait for unicode strings.
- class aiidalab_widgets_base.computational_resources.ComputerDropdownWidget(**kwargs: Any)[source]#
Bases:
VBox
Widget to select a configured computer.
- Attributes:
- value(computer UUID): Trait that points to the selected Computer instance.
It can be set to an AiiDA Computer UUID. It is linked to the ‘value’ trait of self._dropdown widget.
computers(Dict): Trait that contains a dictionary (label => Computer UUID) for all computers found in the AiiDA database. It is linked to the ‘options’ trait of self._dropdown widget. allow_select_disabled(Bool): Trait that defines whether to show disabled computers.
- __annotations__ = {}#
- __init__(description='Select computer:', path_to_root='../', **kwargs)[source]#
Dropdown for configured AiiDA Computers.
description (str): Text to display before dropdown.
path_to_root (str): Path to the app’s root folder.
- __module__ = 'aiidalab_widgets_base.computational_resources'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'allow_select_disabled': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'computers': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'value': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.ValidateHandler object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method ValidateHandler.instance_init of <traitlets.traitlets.ValidateHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'allow_select_disabled': False, 'comm': None, 'value': ''}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'allow_select_disabled': <traitlets.traitlets.Bool object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'computers': <traitlets.traitlets.Dict object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'value': <traitlets.traitlets.Unicode object>}#
- _validate_value#
- allow_select_disabled#
A boolean (True, False) trait.
- computers#
An instance of a Python dict.
One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.
Changed in version 5.0: Added key_trait for validating dict keys.
Changed in version 5.0: Deprecated ambiguous
trait
,traits
args in favor ofvalue_trait
,per_key_traits
.
- value#
A trait for unicode strings.
- class aiidalab_widgets_base.computational_resources.SshComputerSetup(**kwargs: Any)[source]#
Bases:
VBox
Setup a passwordless access to a computer.
- SSH_POSSIBLE_RESPONSES = ['[Pp]assword:', 'Now try logging into', 'All keys were skipped because they already exist on the remote system', 'Are you sure you want to continue connecting (yes/no)?', 'ERROR: No identities found', 'Could not resolve hostname', 'Connection refused', <class 'pexpect.exceptions.EOF'>]#
- __annotations__ = {'_all_trait_default_generators': 't.Dict[str, t.Any]', '_cross_validation_lock': 'bool', '_static_immutable_initial_values': 't.Dict[str, t.Any]', '_trait_notifiers': 't.Dict[str, t.Any]', '_trait_validators': 't.Dict[str, t.Any]', '_trait_values': 't.Dict[str, t.Any]', '_traits': 't.Dict[str, t.Any]'}#
- __module__ = 'aiidalab_widgets_base.computational_resources'#
- static _add_private_key(private_key_fname, private_key_content)[source]#
param private_key_fname: string param private_key_content: bytes
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'message': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'password_message': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'ssh_config': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, 'ssh_connection_state': <bound method TraitType.default of <traitlets.traitlets.UseEnum object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.UseEnum object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.UseEnum object>>]#
- _observe_ssh_config#
- _observe_ssh_connnection_state#
- property _private_key#
Unwrap private key file and setting filename and file content.
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'message': '', 'password_message': 'The passwordless enabling log.'}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'message': <traitlets.traitlets.Unicode object>, 'password_message': <traitlets.traitlets.Unicode object>, 'ssh_config': <traitlets.traitlets.Dict object>, 'ssh_connection_state': <traitlets.traitlets.UseEnum object>}#
- message#
A trait for unicode strings.
- password_message#
A trait for unicode strings.
- ssh_config#
An instance of a Python dict.
One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.
Changed in version 5.0: Added key_trait for validating dict keys.
Changed in version 5.0: Deprecated ambiguous
trait
,traits
args in favor ofvalue_trait
,per_key_traits
.
- ssh_connection_state#
Use a Enum class as model for the data type description. Note that if no default-value is provided, the first enum-value is used as default-value.
# -- SINCE: Python 3.4 (or install backport: pip install enum34) import enum from traitlets import HasTraits, UseEnum class Color(enum.Enum): red = 1 # -- IMPLICIT: default_value blue = 2 green = 3 class MyEntity(HasTraits): color = UseEnum(Color, default_value=Color.blue) entity = MyEntity(color=Color.red) entity.color = Color.green # USE: Enum-value (preferred) entity.color = "green" # USE: name (as string) entity.color = "Color.green" # USE: scoped-name (as string) entity.color = 3 # USE: number (as int) assert entity.color is Color.green
- class aiidalab_widgets_base.computational_resources.SshConnectionState(value)[source]#
Bases:
Enum
An enumeration.
- __module__ = 'aiidalab_widgets_base.computational_resources'#
- connection_refused = 6#
- do_you_want_to_continue = 3#
- end_of_file = 7#
- enter_password = 0#
- keys_already_present = 2#
- no_keys = 4#
- success = 1#
- unknown_hostname = 5#
- waiting_for_input = -1#
aiidalab_widgets_base.databases module#
Widgets that allow to query online databases.
- class aiidalab_widgets_base.databases.CodQueryWidget(**kwargs: Any)[source]#
Bases:
VBox
Query structures in Crystallography Open Database (COD) Useful class members: :ivar structure(Atoms): trait that contains the selected structure, None if structure is not selected.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.databases'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'structure': <traitlets.traitlets.DefaultHandler object>}#
- _default_structure#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None}#
- _trait_default_generators = {'structure': <traitlets.traitlets.DefaultHandler object>}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'structure': <traitlets.traitlets.Instance object>}#
- structure#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- class aiidalab_widgets_base.databases.ComputationalResourcesDatabaseWidget(**kwargs: Any)[source]#
Bases:
VBox
Extract the setup of a known computer from the AiiDA code registry.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.databases'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'code_setup': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'computer_setup': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, 'database': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, 'default_calc_job_plugin': <traitlets.traitlets.DefaultHandler object>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'ssh_config': <bound method TraitType.default of <traitlets.traitlets.Dict object>>}#
- _computer_changed(_=None)[source]#
Read settings from the YAML files and populate self.database with them.
- _default_calc_job_plugin#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _observer_database_change#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None}#
- _trait_default_generators = {'default_calc_job_plugin': <traitlets.traitlets.DefaultHandler object>}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'code_setup': <traitlets.traitlets.Dict object>, 'comm': <traitlets.traitlets.Instance object>, 'computer_setup': <traitlets.traitlets.Dict object>, 'database': <traitlets.traitlets.Dict object>, 'default_calc_job_plugin': <traitlets.traitlets.Unicode object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'ssh_config': <traitlets.traitlets.Dict object>}#
- code_setup#
An instance of a Python dict.
One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.
Changed in version 5.0: Added key_trait for validating dict keys.
Changed in version 5.0: Deprecated ambiguous
trait
,traits
args in favor ofvalue_trait
,per_key_traits
.
- computer_setup#
An instance of a Python dict.
One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.
Changed in version 5.0: Added key_trait for validating dict keys.
Changed in version 5.0: Deprecated ambiguous
trait
,traits
args in favor ofvalue_trait
,per_key_traits
.
- database#
An instance of a Python dict.
One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.
Changed in version 5.0: Added key_trait for validating dict keys.
Changed in version 5.0: Deprecated ambiguous
trait
,traits
args in favor ofvalue_trait
,per_key_traits
.
- default_calc_job_plugin#
A trait for unicode strings.
- ssh_config#
An instance of a Python dict.
One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.
Changed in version 5.0: Added key_trait for validating dict keys.
Changed in version 5.0: Deprecated ambiguous
trait
,traits
args in favor ofvalue_trait
,per_key_traits
.
- class aiidalab_widgets_base.databases.OptimadeQueryWidget(**kwargs: Any)[source]#
Bases:
VBox
AiiDAlab-specific OPTIMADE Query widget
Useful as a widget to integrate with the
aiidalab_widgets_base.structures.StructureManagerWidget
, embedded into applications.NOTE: embedded for OptimadeQueryFilterWidget was introduced in optimade-client version 2020.11.5.
- Parameters:
embedded (bool) – Whether or not to show extra database and provider information. When set to True, the extra information will be hidden, this is useful in situations where the widget is used in a Tab or similar, e.g., for the class
aiidalab_widgets_base.structures.StructureManagerWidget
.title (str) – Title used for Tab header if employed in
aiidalab_widgets_base.structures.StructureManagerWidget
.
- __annotations__ = {}#
- __init__(embedded: bool = True, title: Optional[str] = None, **kwargs) None [source]#
Public constructor
- __module__ = 'aiidalab_widgets_base.databases'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'structure': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>]#
- _disable_providers = ['cod', 'tcod', 'nmd', 'oqmd', 'aflow', 'mpds', 'jarvis']#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _provider_database_groupings = {'Materials Cloud': {'Contributed Projects': ['2dtopo', 'pyrene-mofs', 'scdm', 'stoceriaitf', 'tc-applicability', 'tin-antimony-sulfoiodide', 'curated-cofs'], 'Main Projects': ['mc3d', 'mc2d']}}#
- _skip_databases = {'Materials Cloud': ['optimade-sample', 'li-ion-conductors', 'sssp']}#
- _skip_providers = ['exmpl', 'optimade', 'aiida', 'ccpnc', 'matcloud', 'necro', 'httk', 'pcod']#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'structure': None}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'structure': <traitlets.traitlets.Instance object>}#
- structure#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
aiidalab_widgets_base.dicts module#
aiidalab_widgets_base.elns module#
- class aiidalab_widgets_base.elns.ElnConfigureWidget(**kwargs: Any)[source]#
Bases:
VBox
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.elns'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>}#
- class aiidalab_widgets_base.elns.ElnExportWidget(**kwargs: Any)[source]#
Bases:
VBox
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.elns'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'node': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _observe_node#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'node': None}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'node': <traitlets.traitlets.Instance object>}#
- node#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- class aiidalab_widgets_base.elns.ElnImportWidget(**kwargs: Any)[source]#
Bases:
VBox
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.elns'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'node': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'node': None}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'node': <traitlets.traitlets.Instance object>}#
- node#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
aiidalab_widgets_base.export module#
Widgets to manage AiiDA export.
- class aiidalab_widgets_base.export.ExportButtonWidget(**kwargs: Any)[source]#
Bases:
Button
Export Node button.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.export'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'button_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'description': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'disabled': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'style': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'tooltip': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.ValidateHandler object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Unicode object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method ValidateHandler.instance_init of <traitlets.traitlets.ValidateHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'ButtonModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'ButtonView', 'comm': None, 'description': '', 'disabled': False, 'icon': '', 'tooltip': ''}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'button_style': <traitlets.traitlets.CaselessStrEnum object>, 'comm': <traitlets.traitlets.Instance object>, 'description': <traitlets.traitlets.Unicode object>, 'disabled': <traitlets.traitlets.Bool object>, 'icon': <traitlets.traitlets.Unicode object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'style': <ipywidgets.widgets.trait_types.InstanceDict object>, 'tooltip': <traitlets.traitlets.Unicode object>}#
aiidalab_widgets_base.misc module#
Some useful classes used acrross the repository.
- class aiidalab_widgets_base.misc.CopyToClipboardButton(**kwargs: Any)[source]#
Bases:
Button
Button to copy text to clipboard.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.misc'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'button_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'description': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'disabled': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'style': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'tooltip': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'value': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.ValidateHandler object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method ValidateHandler.instance_init of <traitlets.traitlets.ValidateHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'ButtonModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'ButtonView', 'comm': None, 'description': '', 'disabled': False, 'icon': '', 'tooltip': '', 'value': ''}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'button_style': <traitlets.traitlets.CaselessStrEnum object>, 'comm': <traitlets.traitlets.Instance object>, 'description': <traitlets.traitlets.Unicode object>, 'disabled': <traitlets.traitlets.Bool object>, 'icon': <traitlets.traitlets.Unicode object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'style': <ipywidgets.widgets.trait_types.InstanceDict object>, 'tooltip': <traitlets.traitlets.Unicode object>, 'value': <traitlets.traitlets.Unicode object>}#
- value#
A trait for unicode strings.
- class aiidalab_widgets_base.misc.ReversePolishNotation(operators, additional_operands=None)[source]#
Bases:
object
Class defining operations for RPN conversion
- __dict__ = mappingproxy({'__module__': 'aiidalab_widgets_base.misc', '__doc__': 'Class defining operations for RPN conversion', '__init__': <function ReversePolishNotation.__init__>, 'haslessorequalpriority': <function ReversePolishNotation.haslessorequalpriority>, 'is_operator': <function ReversePolishNotation.is_operator>, 'isopenparenthesis': <staticmethod(<function ReversePolishNotation.isopenparenthesis>)>, 'iscloseparenthesis': <staticmethod(<function ReversePolishNotation.iscloseparenthesis>)>, 'convert': <function ReversePolishNotation.convert>, 'parse_infix_notation': <staticmethod(<function ReversePolishNotation.parse_infix_notation>)>, 'execute': <function ReversePolishNotation.execute>, '__dict__': <attribute '__dict__' of 'ReversePolishNotation' objects>, '__weakref__': <attribute '__weakref__' of 'ReversePolishNotation' objects>, '__annotations__': {}})#
- __module__ = 'aiidalab_widgets_base.misc'#
- __weakref__#
list of weak references to the object (if defined)
aiidalab_widgets_base.nodes module#
Widgets to work with AiiDA nodes.
- class aiidalab_widgets_base.nodes.AiidaNodeTreeNode(**kwargs: Any)[source]#
Bases:
Node
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.nodes'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_id': <traitlets.traitlets.DefaultHandler object>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'disabled': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_image': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'log': <traitlets.traitlets.DefaultHandler object>, 'name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'nodes': <bound method TraitType.default of <traitlets.traitlets.Tuple object>>, 'open_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'open_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'opened': <traitlets.traitlets.DefaultHandler object>, 'selected': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'show_icon': <bound method TraitType.default of <traitlets.traitlets.Bool object>>}#
- _default_openend#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.List object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Tuple object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': 'ipytree', '_model_module_version': '^0.2', '_model_name': 'NodeModel', '_view_count': None, '_view_module': 'ipytree', '_view_module_version': '^0.2', '_view_name': 'NodeView', 'close_icon': 'minus', 'comm': None, 'disabled': False, 'icon': 'folder', 'icon_image': '', 'name': 'Node', 'open_icon': 'plus', 'selected': False, 'show_icon': True}#
- _trait_default_generators = {'opened': <traitlets.traitlets.DefaultHandler object>}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_id': <traitlets.traitlets.Unicode object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'close_icon': <traitlets.traitlets.Unicode object>, 'close_icon_style': <traitlets.traitlets.Enum object>, 'comm': <traitlets.traitlets.Instance object>, 'disabled': <traitlets.traitlets.Bool object>, 'icon': <traitlets.traitlets.Unicode object>, 'icon_image': <traitlets.traitlets.Unicode object>, 'icon_style': <traitlets.traitlets.Enum object>, 'keys': <traitlets.traitlets.List object>, 'log': <traitlets.traitlets.Instance object>, 'name': <traitlets.traitlets.Unicode object>, 'nodes': <traitlets.traitlets.Tuple object>, 'open_icon': <traitlets.traitlets.Unicode object>, 'open_icon_style': <traitlets.traitlets.Enum object>, 'opened': <traitlets.traitlets.Bool object>, 'selected': <traitlets.traitlets.Bool object>, 'show_icon': <traitlets.traitlets.Bool object>}#
- class aiidalab_widgets_base.nodes.AiidaOutputsTreeNode(**kwargs: Any)[source]#
Bases:
Node
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.nodes'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_id': <traitlets.traitlets.DefaultHandler object>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'disabled': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_image': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'log': <traitlets.traitlets.DefaultHandler object>, 'name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'nodes': <bound method TraitType.default of <traitlets.traitlets.Tuple object>>, 'open_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'open_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'opened': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'selected': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'show_icon': <bound method TraitType.default of <traitlets.traitlets.Bool object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.List object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Tuple object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': 'ipytree', '_model_module_version': '^0.2', '_model_name': 'NodeModel', '_view_count': None, '_view_module': 'ipytree', '_view_module_version': '^0.2', '_view_name': 'NodeView', 'close_icon': 'minus', 'comm': None, 'disabled': True, 'icon': 'folder', 'icon_image': '', 'name': 'Node', 'open_icon': 'plus', 'opened': True, 'selected': False, 'show_icon': True}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_id': <traitlets.traitlets.Unicode object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'close_icon': <traitlets.traitlets.Unicode object>, 'close_icon_style': <traitlets.traitlets.Enum object>, 'comm': <traitlets.traitlets.Instance object>, 'disabled': <traitlets.traitlets.Bool object>, 'icon': <traitlets.traitlets.Unicode object>, 'icon_image': <traitlets.traitlets.Unicode object>, 'icon_style': <traitlets.traitlets.Enum object>, 'keys': <traitlets.traitlets.List object>, 'log': <traitlets.traitlets.Instance object>, 'name': <traitlets.traitlets.Unicode object>, 'nodes': <traitlets.traitlets.Tuple object>, 'open_icon': <traitlets.traitlets.Unicode object>, 'open_icon_style': <traitlets.traitlets.Enum object>, 'opened': <traitlets.traitlets.Bool object>, 'selected': <traitlets.traitlets.Bool object>, 'show_icon': <traitlets.traitlets.Bool object>}#
- disabled#
A boolean (True, False) trait.
- icon#
A trait for unicode strings.
- class aiidalab_widgets_base.nodes.AiidaProcessNodeTreeNode(**kwargs: Any)[source]#
Bases:
AiidaNodeTreeNode
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.nodes'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_id': <traitlets.traitlets.DefaultHandler object>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'disabled': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_image': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'log': <traitlets.traitlets.DefaultHandler object>, 'name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'nodes': <bound method TraitType.default of <traitlets.traitlets.Tuple object>>, 'open_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'open_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'opened': <traitlets.traitlets.DefaultHandler object>, 'selected': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'show_icon': <bound method TraitType.default of <traitlets.traitlets.Bool object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.List object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Tuple object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': 'ipytree', '_model_module_version': '^0.2', '_model_name': 'NodeModel', '_view_count': None, '_view_module': 'ipytree', '_view_module_version': '^0.2', '_view_name': 'NodeView', 'close_icon': 'minus', 'comm': None, 'disabled': False, 'icon': 'folder', 'icon_image': '', 'name': 'Node', 'open_icon': 'plus', 'selected': False, 'show_icon': True}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_id': <traitlets.traitlets.Unicode object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'close_icon': <traitlets.traitlets.Unicode object>, 'close_icon_style': <traitlets.traitlets.Enum object>, 'comm': <traitlets.traitlets.Instance object>, 'disabled': <traitlets.traitlets.Bool object>, 'icon': <traitlets.traitlets.Unicode object>, 'icon_image': <traitlets.traitlets.Unicode object>, 'icon_style': <traitlets.traitlets.Enum object>, 'keys': <traitlets.traitlets.List object>, 'log': <traitlets.traitlets.Instance object>, 'name': <traitlets.traitlets.Unicode object>, 'nodes': <traitlets.traitlets.Tuple object>, 'open_icon': <traitlets.traitlets.Unicode object>, 'open_icon_style': <traitlets.traitlets.Enum object>, 'opened': <traitlets.traitlets.Bool object>, 'selected': <traitlets.traitlets.Bool object>, 'show_icon': <traitlets.traitlets.Bool object>}#
- class aiidalab_widgets_base.nodes.CalcFunctionTreeNode(**kwargs: Any)[source]#
Bases:
AiidaProcessNodeTreeNode
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.nodes'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_id': <traitlets.traitlets.DefaultHandler object>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'disabled': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_image': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'log': <traitlets.traitlets.DefaultHandler object>, 'name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'nodes': <bound method TraitType.default of <traitlets.traitlets.Tuple object>>, 'open_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'open_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'opened': <traitlets.traitlets.DefaultHandler object>, 'selected': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'show_icon': <bound method TraitType.default of <traitlets.traitlets.Bool object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.List object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Tuple object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': 'ipytree', '_model_module_version': '^0.2', '_model_name': 'NodeModel', '_view_count': None, '_view_module': 'ipytree', '_view_module_version': '^0.2', '_view_name': 'NodeView', 'close_icon': 'minus', 'comm': None, 'disabled': False, 'icon': 'gear', 'icon_image': '', 'name': 'Node', 'open_icon': 'plus', 'selected': False, 'show_icon': True}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_id': <traitlets.traitlets.Unicode object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'close_icon': <traitlets.traitlets.Unicode object>, 'close_icon_style': <traitlets.traitlets.Enum object>, 'comm': <traitlets.traitlets.Instance object>, 'disabled': <traitlets.traitlets.Bool object>, 'icon': <traitlets.traitlets.Unicode object>, 'icon_image': <traitlets.traitlets.Unicode object>, 'icon_style': <traitlets.traitlets.Enum object>, 'keys': <traitlets.traitlets.List object>, 'log': <traitlets.traitlets.Instance object>, 'name': <traitlets.traitlets.Unicode object>, 'nodes': <traitlets.traitlets.Tuple object>, 'open_icon': <traitlets.traitlets.Unicode object>, 'open_icon_style': <traitlets.traitlets.Enum object>, 'opened': <traitlets.traitlets.Bool object>, 'selected': <traitlets.traitlets.Bool object>, 'show_icon': <traitlets.traitlets.Bool object>}#
- icon#
A trait for unicode strings.
- class aiidalab_widgets_base.nodes.CalcJobTreeNode(**kwargs: Any)[source]#
Bases:
AiidaProcessNodeTreeNode
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.nodes'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_id': <traitlets.traitlets.DefaultHandler object>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'disabled': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_image': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'log': <traitlets.traitlets.DefaultHandler object>, 'name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'nodes': <bound method TraitType.default of <traitlets.traitlets.Tuple object>>, 'open_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'open_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'opened': <traitlets.traitlets.DefaultHandler object>, 'selected': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'show_icon': <bound method TraitType.default of <traitlets.traitlets.Bool object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.List object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Tuple object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': 'ipytree', '_model_module_version': '^0.2', '_model_name': 'NodeModel', '_view_count': None, '_view_module': 'ipytree', '_view_module_version': '^0.2', '_view_name': 'NodeView', 'close_icon': 'minus', 'comm': None, 'disabled': False, 'icon': 'gears', 'icon_image': '', 'name': 'Node', 'open_icon': 'plus', 'selected': False, 'show_icon': True}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_id': <traitlets.traitlets.Unicode object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'close_icon': <traitlets.traitlets.Unicode object>, 'close_icon_style': <traitlets.traitlets.Enum object>, 'comm': <traitlets.traitlets.Instance object>, 'disabled': <traitlets.traitlets.Bool object>, 'icon': <traitlets.traitlets.Unicode object>, 'icon_image': <traitlets.traitlets.Unicode object>, 'icon_style': <traitlets.traitlets.Enum object>, 'keys': <traitlets.traitlets.List object>, 'log': <traitlets.traitlets.Instance object>, 'name': <traitlets.traitlets.Unicode object>, 'nodes': <traitlets.traitlets.Tuple object>, 'open_icon': <traitlets.traitlets.Unicode object>, 'open_icon_style': <traitlets.traitlets.Enum object>, 'opened': <traitlets.traitlets.Bool object>, 'selected': <traitlets.traitlets.Bool object>, 'show_icon': <traitlets.traitlets.Bool object>}#
- icon#
A trait for unicode strings.
- class aiidalab_widgets_base.nodes.NodesTreeWidget(**kwargs: Any)[source]#
Bases:
Output
A tree widget for the structured representation of a nodes graph.
- NODE_TYPE = {<class 'aiida.orm.nodes.process.workflow.workchain.WorkChainNode'>: <class 'aiidalab_widgets_base.nodes.WorkChainProcessTreeNode'>, <class 'aiida.orm.nodes.process.calculation.calcfunction.CalcFunctionNode'>: <class 'aiidalab_widgets_base.nodes.CalcFunctionTreeNode'>, <class 'aiida.orm.nodes.process.calculation.calcjob.CalcJobNode'>: <class 'aiidalab_widgets_base.nodes.CalcJobTreeNode'>}#
- PROCESS_STATE_STYLE = {<ProcessState.EXCEPTED: 'excepted'>: 'danger', <ProcessState.FINISHED: 'finished'>: 'success', <ProcessState.KILLED: 'killed'>: 'warning', <ProcessState.RUNNING: 'running'>: 'info', <ProcessState.WAITING: 'waiting'>: 'info'}#
- PROCESS_STATE_STYLE_DEFAULT = 'default'#
- __annotations__ = {'_all_trait_default_generators': 't.Dict[str, t.Any]', '_cross_validation_lock': 'bool', '_static_immutable_initial_values': 't.Dict[str, t.Any]', '_trait_notifiers': 't.Dict[str, t.Any]', '_trait_validators': 't.Dict[str, t.Any]', '_trait_values': 't.Dict[str, t.Any]', '_traits': 't.Dict[str, t.Any]'}#
- __module__ = 'aiidalab_widgets_base.nodes'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'msg_id': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'nodes': <bound method TraitType.default of <traitlets.traitlets.Tuple object>>, 'outputs': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'selected_nodes': <bound method TraitType.default of <traitlets.traitlets.Tuple object>>}#
- _convert_to_tree_nodes(old_nodes, new_nodes)[source]#
Convert nodes into tree nodes while re-using already converted nodes.
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Tuple object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Tuple object>]#
- classmethod _find_outputs(root)[source]#
A generator for all (including nested) output nodes.
Generates an AiidaOutputsTreeNode when encountering a namespace, keeping track of the full namespace path to make it accessible via the root node in form of a breadth-first search.
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _observe_nodes#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/output', '_model_module_version': '1.0.0', '_model_name': 'OutputModel', '_view_count': None, '_view_module': '@jupyter-widgets/output', '_view_module_version': '1.0.0', '_view_name': 'OutputView', 'comm': None, 'msg_id': ''}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'msg_id': <traitlets.traitlets.Unicode object>, 'nodes': <traitlets.traitlets.Tuple object>, 'outputs': <ipywidgets.widgets.trait_types.TypedTuple object>, 'selected_nodes': <traitlets.traitlets.Tuple object>}#
- nodes#
An instance of a Python tuple.
- selected_nodes#
An instance of a Python tuple.
- class aiidalab_widgets_base.nodes.OpenAiidaNodeInAppWidget(**kwargs: Any)[source]#
Bases:
VBox
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.nodes'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'node': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _observe_node#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'node': None}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'node': <traitlets.traitlets.Instance object>}#
- node#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- class aiidalab_widgets_base.nodes.UnknownTypeTreeNode(**kwargs: Any)[source]#
Bases:
AiidaNodeTreeNode
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.nodes'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_id': <traitlets.traitlets.DefaultHandler object>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'disabled': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_image': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'log': <traitlets.traitlets.DefaultHandler object>, 'name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'nodes': <bound method TraitType.default of <traitlets.traitlets.Tuple object>>, 'open_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'open_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'opened': <traitlets.traitlets.DefaultHandler object>, 'selected': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'show_icon': <bound method TraitType.default of <traitlets.traitlets.Bool object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.List object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Tuple object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': 'ipytree', '_model_module_version': '^0.2', '_model_name': 'NodeModel', '_view_count': None, '_view_module': 'ipytree', '_view_module_version': '^0.2', '_view_name': 'NodeView', 'close_icon': 'minus', 'comm': None, 'disabled': False, 'icon': 'file', 'icon_image': '', 'name': 'Node', 'open_icon': 'plus', 'selected': False, 'show_icon': True}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_id': <traitlets.traitlets.Unicode object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'close_icon': <traitlets.traitlets.Unicode object>, 'close_icon_style': <traitlets.traitlets.Enum object>, 'comm': <traitlets.traitlets.Instance object>, 'disabled': <traitlets.traitlets.Bool object>, 'icon': <traitlets.traitlets.Unicode object>, 'icon_image': <traitlets.traitlets.Unicode object>, 'icon_style': <traitlets.traitlets.Enum object>, 'keys': <traitlets.traitlets.List object>, 'log': <traitlets.traitlets.Instance object>, 'name': <traitlets.traitlets.Unicode object>, 'nodes': <traitlets.traitlets.Tuple object>, 'open_icon': <traitlets.traitlets.Unicode object>, 'open_icon_style': <traitlets.traitlets.Enum object>, 'opened': <traitlets.traitlets.Bool object>, 'selected': <traitlets.traitlets.Bool object>, 'show_icon': <traitlets.traitlets.Bool object>}#
- icon#
A trait for unicode strings.
- class aiidalab_widgets_base.nodes.WorkChainProcessTreeNode(**kwargs: Any)[source]#
Bases:
AiidaProcessNodeTreeNode
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.nodes'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_id': <traitlets.traitlets.DefaultHandler object>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'close_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'disabled': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_image': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'log': <traitlets.traitlets.DefaultHandler object>, 'name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'nodes': <bound method TraitType.default of <traitlets.traitlets.Tuple object>>, 'open_icon': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'open_icon_style': <bound method TraitType.default of <traitlets.traitlets.Enum object>>, 'opened': <traitlets.traitlets.DefaultHandler object>, 'selected': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'show_icon': <bound method TraitType.default of <traitlets.traitlets.Bool object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.List object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Tuple object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Bool object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': 'ipytree', '_model_module_version': '^0.2', '_model_name': 'NodeModel', '_view_count': None, '_view_module': 'ipytree', '_view_module_version': '^0.2', '_view_name': 'NodeView', 'close_icon': 'minus', 'comm': None, 'disabled': False, 'icon': 'chain', 'icon_image': '', 'name': 'Node', 'open_icon': 'plus', 'selected': False, 'show_icon': True}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_id': <traitlets.traitlets.Unicode object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'close_icon': <traitlets.traitlets.Unicode object>, 'close_icon_style': <traitlets.traitlets.Enum object>, 'comm': <traitlets.traitlets.Instance object>, 'disabled': <traitlets.traitlets.Bool object>, 'icon': <traitlets.traitlets.Unicode object>, 'icon_image': <traitlets.traitlets.Unicode object>, 'icon_style': <traitlets.traitlets.Enum object>, 'keys': <traitlets.traitlets.List object>, 'log': <traitlets.traitlets.Instance object>, 'name': <traitlets.traitlets.Unicode object>, 'nodes': <traitlets.traitlets.Tuple object>, 'open_icon': <traitlets.traitlets.Unicode object>, 'open_icon_style': <traitlets.traitlets.Enum object>, 'opened': <traitlets.traitlets.Bool object>, 'selected': <traitlets.traitlets.Bool object>, 'show_icon': <traitlets.traitlets.Bool object>}#
- icon#
A trait for unicode strings.
- class aiidalab_widgets_base.nodes._AppIcon(app, path_to_root, node)[source]#
Bases:
object
- __dict__ = mappingproxy({'__module__': 'aiidalab_widgets_base.nodes', '__init__': <function _AppIcon.__init__>, 'to_html_string': <function _AppIcon.to_html_string>, '__dict__': <attribute '__dict__' of '_AppIcon' objects>, '__weakref__': <attribute '__weakref__' of '_AppIcon' objects>, '__doc__': None, '__annotations__': {}})#
- __module__ = 'aiidalab_widgets_base.nodes'#
- __weakref__#
list of weak references to the object (if defined)
aiidalab_widgets_base.process module#
Widgets to work with processes.
- class aiidalab_widgets_base.process.CalcJobOutputWidget(**kwargs: Any)[source]#
Bases:
Textarea
Output of a calculation.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.process'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'calculation': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'continuous_update': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'description': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'description_tooltip': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'disabled': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'placeholder': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'rows': <bound method TraitType.default of <traitlets.traitlets.Int object>>, 'style': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'value': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>}#
- _change_calculation#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Bool object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Int object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Unicode object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'TextareaModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'TextareaView', 'calculation': None, 'comm': None, 'continuous_update': True, 'description': '', 'description_tooltip': None, 'disabled': False, 'placeholder': '\u200b', 'rows': None, 'value': ''}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'calculation': <traitlets.traitlets.Instance object>, 'comm': <traitlets.traitlets.Instance object>, 'continuous_update': <traitlets.traitlets.Bool object>, 'description': <traitlets.traitlets.Unicode object>, 'description_tooltip': <traitlets.traitlets.Unicode object>, 'disabled': <traitlets.traitlets.Bool object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'placeholder': <traitlets.traitlets.Unicode object>, 'rows': <traitlets.traitlets.Int object>, 'style': <ipywidgets.widgets.trait_types.InstanceDict object>, 'value': <traitlets.traitlets.Unicode object>}#
- calculation#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- update()[source]#
Update the displayed output and scroll to its end.
NOTE: when this widgets is called by ProcessFollowerWidget in non-blocking manner the auto-scrolling won’t work. There used to be a function for the Textarea widget, but it didn’t work properly and got removed. For more information please visit: jupyter-widgets/ipywidgets#1815
- class aiidalab_widgets_base.process.ProcessCallStackWidget(**kwargs: Any)[source]#
Bases:
HTML
Widget that shows process call stack.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.process'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'description': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'description_tooltip': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'placeholder': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'process': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'style': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'value': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Unicode object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'HTMLModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'HTMLView', 'comm': None, 'description': '', 'description_tooltip': None, 'placeholder': '\u200b', 'process': None, 'value': ''}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'comm': <traitlets.traitlets.Instance object>, 'description': <traitlets.traitlets.Unicode object>, 'description_tooltip': <traitlets.traitlets.Unicode object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'placeholder': <traitlets.traitlets.Unicode object>, 'process': <traitlets.traitlets.Instance object>, 'style': <ipywidgets.widgets.trait_types.InstanceDict object>, 'value': <traitlets.traitlets.Unicode object>}#
- process#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- class aiidalab_widgets_base.process.ProcessFollowerWidget(**kwargs: Any)[source]#
Bases:
VBox
A Widget that follows a process until finished.
- __annotations__ = {}#
- __init__(process=None, followers=None, update_interval=0.1, path_to_root='../', **kwargs)[source]#
Initiate all the followers.
- __module__ = 'aiidalab_widgets_base.process'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'process': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'process': None}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'process': <traitlets.traitlets.Instance object>}#
- process#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- class aiidalab_widgets_base.process.ProcessInputsWidget(**kwargs: Any)[source]#
Bases:
VBox
Widget to select and show process inputs.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.process'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'process': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'process': None}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'process': <traitlets.traitlets.Instance object>}#
- generate_flat_mapping(process: Optional[ProcessNode] = None) None | dict[str, str] [source]#
Generate a dict of input to node uuid mapping.
If the input port is a namespace, it will further parse the namespace and attach the entity the <namespace>.<childnamespace>.<node_name> format.
- Parameters:
process – Process node.
- Returns:
Dict of flatten embed key name to node UUID.
- process#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- class aiidalab_widgets_base.process.ProcessListWidget(**kwargs: Any)[source]#
Bases:
VBox
List of AiiDA processes.
past_days (int): Sumulations that were submitted in the last past_days.
incoming_node (str): Trait that takes node uuid that must be among the input nodes of the process of interest.
outgoing_node (str): Trait that takes node uuid that must be among the output nodes of the process of interest.
process_states (list): List of allowed process states.
process_label (str): Show process states of type process_label.
description_contains (str): string that should be present in the description of a process node.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.process'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'description_contains': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'incoming_node': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'outgoing_node': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'past_days': <bound method TraitType.default of <traitlets.traitlets.Int object>>, 'process_label': <traitlets.traitlets.DefaultHandler object>, 'process_states': <bound method TraitType.default of <traitlets.traitlets.List object>>}#
- _default_process_label#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.ValidateHandler object>, <traitlets.traitlets.ValidateHandler object>, <traitlets.traitlets.ValidateHandler object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.List object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method ValidateHandler.instance_init of <traitlets.traitlets.ValidateHandler object>>, <bound method ValidateHandler.instance_init of <traitlets.traitlets.ValidateHandler object>>, <bound method ValidateHandler.instance_init of <traitlets.traitlets.ValidateHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'description_contains': '', 'incoming_node': '', 'outgoing_node': '', 'past_days': 7}#
- _trait_default_generators = {'process_label': <traitlets.traitlets.DefaultHandler object>}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'description_contains': <traitlets.traitlets.Unicode object>, 'incoming_node': <traitlets.traitlets.Unicode object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'outgoing_node': <traitlets.traitlets.Unicode object>, 'past_days': <traitlets.traitlets.Int object>, 'process_label': <traitlets.traitlets.Unicode object>, 'process_states': <traitlets.traitlets.List object>}#
- _validate_incoming_node#
- _validate_outgoing_node#
- _validate_process_label#
- description_contains#
A trait for unicode strings.
- incoming_node#
A trait for unicode strings.
- outgoing_node#
A trait for unicode strings.
- past_days#
An int trait.
- process_label#
A trait for unicode strings.
- process_states#
An instance of a Python list.
- class aiidalab_widgets_base.process.ProcessMonitor(**kwargs: Any)[source]#
Bases:
HasTraits
Monitor a process and execute callback functions at specified intervals.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.process'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'value': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.Unicode object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>]#
- _observe_process#
- _trait_default_generators = {}#
- value#
A trait for unicode strings.
- class aiidalab_widgets_base.process.ProcessNodesTreeWidget(**kwargs: Any)[source]#
Bases:
VBox
A tree widget for the structured representation of a process graph.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.process'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'selected_nodes': <bound method TraitType.default of <traitlets.traitlets.Tuple object>>, 'value': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Tuple object>, <traitlets.traitlets.Unicode object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _observe_process#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'value': ''}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'selected_nodes': <traitlets.traitlets.Tuple object>, 'value': <traitlets.traitlets.Unicode object>}#
- selected_nodes#
An instance of a Python tuple.
- value#
A trait for unicode strings.
- class aiidalab_widgets_base.process.ProcessOutputsWidget(**kwargs: Any)[source]#
Bases:
VBox
Widget to select and show process outputs.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.process'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'process': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'process': None}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'process': <traitlets.traitlets.Instance object>}#
- process#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- class aiidalab_widgets_base.process.ProcessReportWidget(**kwargs: Any)[source]#
Bases:
HTML
Widget that shows process report.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.process'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'description': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'description_tooltip': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'placeholder': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'process': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'style': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'value': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Unicode object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'HTMLModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'HTMLView', 'comm': None, 'description': '', 'description_tooltip': None, 'placeholder': '\u200b', 'process': None, 'value': ''}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'comm': <traitlets.traitlets.Instance object>, 'description': <traitlets.traitlets.Unicode object>, 'description_tooltip': <traitlets.traitlets.Unicode object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'placeholder': <traitlets.traitlets.Unicode object>, 'process': <traitlets.traitlets.Instance object>, 'style': <ipywidgets.widgets.trait_types.InstanceDict object>, 'value': <traitlets.traitlets.Unicode object>}#
- process#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- value#
A trait for unicode strings.
- class aiidalab_widgets_base.process.ProgressBarWidget(**kwargs: Any)[source]#
Bases:
VBox
A bar showing the proggress of a process.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.process'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'process': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'process': None}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'process': <traitlets.traitlets.Instance object>}#
- property current_state#
- process#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- class aiidalab_widgets_base.process.RunningCalcJobOutputWidget(**kwargs: Any)[source]#
Bases:
VBox
Show an output of selected running child calculation.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.process'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'process': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'process': None}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'process': <traitlets.traitlets.Instance object>}#
- process#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- class aiidalab_widgets_base.process.SubmitButtonWidget(**kwargs: Any)[source]#
Bases:
VBox
Submit button class that creates submit button jupyter widget.
- __annotations__ = {}#
- __init__(process_class, inputs_generator, description='Submit', disable_after_submit=True, append_output=False, **kwargs)[source]#
Submit Button widget.
process_class (Process): Process class to submit.
inputs_generator (func): Function that returns inputs dictionary or inputs builder.
description (str): Description written on the submission button.
disable_after_submit (bool): Whether to disable the button after the process was submitted.
append_output (bool): Whether to clear widget output for each subsequent submission.
- __module__ = 'aiidalab_widgets_base.process'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'process': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'process': None}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'process': <traitlets.traitlets.Instance object>}#
- process#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
aiidalab_widgets_base.structures module#
Module to provide functionality to import structures.
- class aiidalab_widgets_base.structures.BasicCellEditor(**kwargs: Any)[source]#
Bases:
VBox
Widget that allows for the basic cell editing.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.structures'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'structure': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'structure': None}#
- static _to_standard_cell(structure: Atoms, to_primitive=False, no_idealize=False, symprec=1e-05)[source]#
The standardize_cell method from spglib and apply to ase.Atoms
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'structure': <traitlets.traitlets.Instance object>}#
- structure#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- class aiidalab_widgets_base.structures.BasicStructureEditor(**kwargs: Any)[source]#
Bases:
VBox
Widget that allows for the basic structure (molecule and position of periodic structure in cell) editing.
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.structures'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'camera_orientation': <bound method TraitType.default of <traitlets.traitlets.List object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'input_selection': <bound method TraitType.default of <traitlets.traitlets.List object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'selection': <bound method TraitType.default of <traitlets.traitlets.List object>>, 'structure': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None, 'structure': None}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'camera_orientation': <traitlets.traitlets.List object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'input_selection': <traitlets.traitlets.List object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'selection': <traitlets.traitlets.List object>, 'structure': <traitlets.traitlets.Instance object>}#
- property action_vector#
Define the action vector.
- align(_=None, atoms=None, selection=None)[source]#
Rotate atoms to align action vector with XYZ vector.
- camera_orientation#
An instance of a Python list.
- copy_sel(_=None, atoms=None, selection=None)[source]#
Copy selected atoms and shift by 1.0 A along X-axis.
- def_perpendicular_to_screen(_=None)[source]#
Define a normalized vector perpendicular to the screen.
- input_selection#
An instance of a Python list.
- mirror(_=None, norm=None, point=None, atoms=None, selection=None)[source]#
Mirror atoms on the plane perpendicular to the action vector.
- mod_element(_=None, atoms=None, selection=None)[source]#
Modify selected atoms into the given element.
- rotate(_=None, atoms=None, selection=None)[source]#
Rotate atoms around selected point in space and vector.
- selection#
An instance of a Python list.
- structure#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- translate_dr(_=None, atoms=None, selection=None)[source]#
Translate by dr along the selected vector.
- class aiidalab_widgets_base.structures.SmilesWidget(**kwargs: Any)[source]#
Bases:
VBox
Convert SMILES into 3D structure.
- SPINNER = '<i class="fa fa-spinner fa-pulse" style="color:red;" ></i>'#
- __annotations__ = {'_all_trait_default_generators': 't.Dict[str, t.Any]', '_cross_validation_lock': 'bool', '_static_immutable_initial_values': 't.Dict[str, t.Any]', '_trait_notifiers': 't.Dict[str, t.Any]', '_trait_validators': 't.Dict[str, t.Any]', '_trait_values': 't.Dict[str, t.Any]', '_traits': 't.Dict[str, t.Any]'}#
- __module__ = 'aiidalab_widgets_base.structures'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'structure': <traitlets.traitlets.DefaultHandler object>}#
- _default_structure#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method BaseDescriptor.instance_init of <traitlets.traitlets.DefaultHandler object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _pybel_opt(smiles, steps)[source]#
Optimize a molecule using force field and pybel (needed for complex SMILES).
- _rdkit_opt(smiles, steps)[source]#
Optimize a molecule using force field and rdkit (needed for complex SMILES).
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'_model_module': '@jupyter-widgets/controls', '_model_module_version': '1.5.0', '_model_name': 'VBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'VBoxView', 'comm': None}#
- _trait_default_generators = {'structure': <traitlets.traitlets.DefaultHandler object>}#
- _traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_dom_classes': <ipywidgets.widgets.trait_types.TypedTuple object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'box_style': <traitlets.traitlets.CaselessStrEnum object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Instance object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'structure': <traitlets.traitlets.Instance object>}#
- structure#
A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
- class aiidalab_widgets_base.structures.StructureBrowserWidget(**kwargs: Any)[source]#
Bases:
VBox
Class to query for structures stored in the AiiDA database.
- Parameters:
title (string) – Title of the widget displayed on a tab in StructureManagerWidget
query_types (tuple) – A tuple of Data node types that are searched (default: StructureData, CifData)
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.structures'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes':