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
MessageLevel
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()
wrap_message()
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: str | None = 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:#
output = ipw.Output() install_create_github_issue_exception_handler( output, url='https://github.com/aiidalab/aiidalab-qe/issues/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.Any 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.Any 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 <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.Any 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.Any object>>, 'computer_configure': <bound method TraitType.default of <traitlets.traitlets.Dict 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>>}#
- _configure_computer_local(computer: Computer, user: User)[source]#
Configure the computer with local transport
- _configure_computer_ssh(computer: Computer, user: User)[source]#
Configure the computer with SSH transport
There are three sources of authparams information ordered by priority increase: - the default values - the SSH config file - the computer_configure dictionary
At the moment, there is no overlap between the SSH config file and the computer_configure dictionary.
The proxyjump and proxycommend can be read from both the SSH config file and the computer_configure dictionary, since the SSH config file is generated from the computer_configure dictionary in SshComputerSetup._write_ssh_config.
- _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.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.Any object>, <traitlets.traitlets.Dict 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 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 <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _observe_computer_configure#
- _observe_computer_setup#
- _observe_computer_setup_and_configure#
- _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.Any object>, 'computer_configure': <traitlets.traitlets.Dict 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>}#
- property all_values_provided#
- computer_configure#
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
.
- message#
A trait for unicode strings.
- property some_values_provided#
- 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:', enable_quick_setup=True, enable_detailed_setup=True, clear_after=None, default_calc_job_plugin=None, **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.Any 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.Any 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 <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _output_width = '460px'#
- _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, '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.Any 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
.
- 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:', **kwargs)[source]#
Dropdown for configured AiiDA Computers.
description (str): Text to display before 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_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.Any 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.Any 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 <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.Any 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]'}#
- __init__(ssh_folder: Path | None = None, **kwargs)[source]#
Setup a passwordless access to a computer.
- __module__ = 'aiidalab_widgets_base.computational_resources'#
- static _add_private_key(private_key_fpath: Path, private_key_content: bytes)[source]#
Write private key to the private key file in the ssh folder.
- _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.Any 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.Any 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 <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: tuple[str | None, bytes | None]#
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.Any 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#
- class aiidalab_widgets_base.computational_resources.TemplateVariable(widget, lines)#
Bases:
tuple
- __getnewargs__()#
Return self as a plain tuple. Used by copy and pickle.
- __match_args__ = ('widget', 'lines')#
- __module__ = 'aiidalab_widgets_base.computational_resources'#
- static __new__(_cls, widget, lines)#
Create new instance of TemplateVariable(widget, lines)
- __repr__()#
Return a nicely formatted representation string
- __slots__ = ()#
- _asdict()#
Return a new dict which maps field names to their values.
- _field_defaults = {}#
- _fields = ('widget', 'lines')#
- classmethod _make(iterable)#
Make a new TemplateVariable object from a sequence or iterable
- _replace(**kwds)#
Return a new TemplateVariable object replacing specified fields with new values
- lines#
Alias for field number 1
- widget#
Alias for field number 0
- class aiidalab_widgets_base.computational_resources.TemplateVariableLine(key, str, vars)#
Bases:
tuple
- __getnewargs__()#
Return self as a plain tuple. Used by copy and pickle.
- __match_args__ = ('key', 'str', 'vars')#
- __module__ = 'aiidalab_widgets_base.computational_resources'#
- static __new__(_cls, key, str, vars)#
Create new instance of TemplateVariableLine(key, str, vars)
- __repr__()#
Return a nicely formatted representation string
- __slots__ = ()#
- _asdict()#
Return a new dict which maps field names to their values.
- _field_defaults = {}#
- _fields = ('key', 'str', 'vars')#
- classmethod _make(iterable)#
Make a new TemplateVariableLine object from a sequence or iterable
- _replace(**kwds)#
Return a new TemplateVariableLine object replacing specified fields with new values
- key#
Alias for field number 0
- str#
Alias for field number 1
- vars#
Alias for field number 2
- class aiidalab_widgets_base.computational_resources.TemplateVariablesWidget(**kwargs: Any)[source]#
Bases:
VBox
- __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.Any object>>, 'filled_templates': <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>, 'metadata': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, 'templates': <bound method TraitType.default of <traitlets.traitlets.Dict 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.ObserveHandler 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.Any object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict 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 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>>]#
- _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}#
- _templates_changed#
- _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.Any object>, 'filled_templates': <traitlets.traitlets.Dict object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'metadata': <traitlets.traitlets.Dict object>, 'templates': <traitlets.traitlets.Dict object>}#
- fill()[source]#
Use template and current widgets value to fill the template and update the filled_template.
- filled_templates#
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
.
- metadata#
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
.
- templates#
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.computational_resources._ResourceSetupBaseWidget(**kwargs: Any)[source]#
Bases:
VBox
The widget that allows to setup a computer and code. This is the building block of the ComputationalResourcesDatabaseWidget which will be directly used by the user.
- __annotations__ = {}#
- __init__(default_calc_job_plugin=None, enable_quick_setup=True, enable_detailed_setup=True)[source]#
Public constructor
- __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.Any 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>>, 'success': <bound method TraitType.default of <traitlets.traitlets.Bool 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.Any object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode 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 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>>]#
- _on_setup_computer_success()[source]#
Callback that is called when the computer is successfully set up.
- _on_template_computer_configure_metadata_change(change)[source]#
callback when the metadata of computer_configure template is changed.
- _on_toggle_detail_setup(change)[source]#
When the checkbox is toggled, show/hide the detailed 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': '', 'success': False}#
- _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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'message': <traitlets.traitlets.Unicode object>, 'success': <traitlets.traitlets.Bool object>}#
- message#
A trait for unicode strings.
- ssh_auth = None#
- success#
A boolean (True, False) trait.
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.Any 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.Any 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 <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.Any 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.
- LAYOUT = {'width': '400px'}#
- STYLE = {'description_width': '180px'}#
- __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]'}#
- __init__(default_calc_job_plugin=None, database_source=None, show_reset_button=True, **kwargs)[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>>, 'code_setup': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Any object>>, 'computer_configure': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, 'computer_setup': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, 'database_source': <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>}#
- static _database_generator(database_source, default_calc_job_plugin)[source]#
From database source JSON and default calc job plugin, generate resource database
- _database_source_changed#
- _default_database_source = 'https://aiidateam.github.io/aiida-resource-registry/database.json'#
- _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.CaselessStrEnum object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Any 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>]#
- _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 <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, 'database_source': ''}#
- _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.Any object>, 'computer_configure': <traitlets.traitlets.Dict object>, 'computer_setup': <traitlets.traitlets.Dict object>, 'database_source': <traitlets.traitlets.Unicode object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance 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_configure#
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_source#
A trait for unicode strings.
- 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__ = {}#
- __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.Any 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.Any 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 <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>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Any 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.Any 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.Any 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 <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.Any 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.Any 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.Any 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 <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.Any 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.Any 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.Any 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 <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.Any 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.Any 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.Any 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 <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.Any 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.Any 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.Any 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 <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.Any 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.Any 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_opened#
- _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.Any 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>>]#
- _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.Any 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.Any 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.Any 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>>]#
- _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', '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.Any 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.Any 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.Any 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>>]#
- _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.Any 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.Any 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.Any 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>>]#
- _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.Any 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.Any 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.Any 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>>]#
- _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.Any 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.calculation.calcfunction.CalcFunctionNode'>: <class 'aiidalab_widgets_base.nodes.CalcFunctionTreeNode'>, <class 'aiida.orm.nodes.process.calculation.calcjob.CalcJobNode'>: <class 'aiidalab_widgets_base.nodes.CalcJobTreeNode'>, <class 'aiida.orm.nodes.process.workflow.workchain.WorkChainNode'>: <class 'aiidalab_widgets_base.nodes.WorkChainProcessTreeNode'>}#
- PROCESS_STATE_STYLE = {ProcessState.EXCEPTED: 'danger', ProcessState.FINISHED: 'success', ProcessState.KILLED: 'warning', ProcessState.RUNNING: 'info', ProcessState.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.Any 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.Any 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 <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.Any 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>}#
- find_node(pk, namespaces=None)[source]#
Find a node by its pk and namespaces. If node is an output node, it is identified by the parent pk and namespaces, otherwise by the pk.
- 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.Any 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.Any 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 <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.Any 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.Any 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.Any 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>>]#
- _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.Any 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.Any 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.Any 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>>]#
- _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.Any 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.Any 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.Any 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 <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.Any 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.Any 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.Any 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 <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.Any 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>}#
- calc_info(node, _=False)[source]#
Return a string with the summary of the state of a CalculationNode.
- 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=1.0, 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.Any 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.Any 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 <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.Any 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.Any 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.Any 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 <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.Any 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: ProcessNode | None = 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.Any 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.Any 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 <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.Any 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#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'value': ''}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'value': <traitlets.traitlets.Unicode object>}#
- 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.Any 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.Any 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 <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.Any 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.Any 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.Any 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 <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.Any 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.Any 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.Any 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 <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.Any 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.Any 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.Any 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 <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.Any 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.Any 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.Any 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 <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.Any 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.Any 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.Any 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 <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.Any 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.Any 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>>}#
- _apply_cell_transformation(_=None, atoms=None)[source]#
Apply the transformation matrix to the structure.
- _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.Any 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 <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_structure#
- _reset_cell_transformation_matrix(_=None, atoms=None)[source]#
Reset the transformation matrix to identity matrix.
- _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.Any 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.Any 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.Any 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 <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.Any 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.Any 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.Any 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 <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>>]#
- _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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'structure': <traitlets.traitlets.Instance object>}#
- static canonicalize_smiles(smiles: str) str [source]#
Canonicalize the SMILES code.
- Raises:
ValueError – if SMILES is invalid or if canonicalization fails
- 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': <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.Any 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 Union.default of <traitlets.traitlets.Union 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.Any object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Union 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 <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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'structure': <traitlets.traitlets.Union object>}#
- structure#
A trait type representing a Union type.
- class aiidalab_widgets_base.structures.StructureExamplesWidget(**kwargs: Any)[source]#
Bases:
VBox
Class to provide example structures for selection.
- __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.Any 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.Any 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 <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.Any 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.StructureManagerWidget(**kwargs: Any)[source]#
Bases:
VBox
Upload a structure and store it in AiiDA database.
- Attributes:
structure(Atoms): trait that contains the selected structure. ‘None’ if no structure is selected. structure_node(StructureData, CifData): trait that contains AiiDA structure object node_class(str): trait that contains structure_node type (as string).
- SUPPORTED_DATA_FORMATS = {'CifData': 'core.cif', 'StructureData': 'core.structure'}#
- __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]'}#
- __init__(importers, viewer=None, editors=None, storable=True, node_class=None, **kwargs)[source]#
- Arguments:
- importers(list): list of tuples each containing the displayed name of importer and the
importer object. Each object should contain ‘structure’ trait pointing to the imported structure. The trait will be linked to ‘structure’ trait of this class.
storable(bool): Whether to provide Store button (together with Store format)
- node_class(str): AiiDA node class for storing the structure.
Possible values: ‘StructureData’, ‘CifData’ or None (let the user decide). Note: If your workflows require a specific node class, better fix it here.
- __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.Any object>>, 'input_structure': <bound method Union.default of <traitlets.traitlets.Union object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'node_class': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'structure': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'structure_node': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _change_structure_node#
- _convert_to_structure_node(structure)[source]#
Convert structure of any type to the StructureNode object.
- _default_node_class#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <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.ObserveHandler object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.ObserveHandler 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.Any object>, <traitlets.traitlets.Union object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance 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 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 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 <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 <traitlets.traitlets.Instance object>>]#
- _observe_input_structure#
- _observe_structure_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_class': '', 'structure': None, 'structure_node': None}#
- _structure_changed#
- _sync_structure_node()[source]#
Synchronize the structure_node trait using the currently provided info.
- _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.Any object>, 'input_structure': <traitlets.traitlets.Union object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'node_class': <traitlets.traitlets.Unicode object>, 'structure': <traitlets.traitlets.Instance object>, 'structure_node': <traitlets.traitlets.Instance object>}#
- input_structure#
A trait type representing a Union type.
- node_class#
A trait for unicode strings.
- 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
- structure_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.structures.StructureUploadWidget(**kwargs: Any)[source]#
Bases:
VBox
Class that allows to upload structures from user’s computer.
- __annotations__ = {}#
- __init__(title='', description='Upload Structure', allow_trajectories=False)[source]#
Public constructor
- __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.Any 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 Union.default of <traitlets.traitlets.Union 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.Any object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Union 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 <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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'structure': <traitlets.traitlets.Union object>}#
- _validate_and_fix_ase_cell(ase_structure, vacuum_ang=10.0)[source]#
Checks if the ase Atoms object has a cell set, otherwise sets it to bounding box plus specified “vacuum” space
- structure#
A trait type representing a Union type.
- aiidalab_widgets_base.structures._register_selection(operator)[source]#
Decorator for methods that manipulate (operate on) the selected structure.
Checks whether a structure and selection is set and ensures that the arguments for structure and selection are passed by copy rather than reference. A pop-up warning message is shown in case that neither a structure or selection are set.
- aiidalab_widgets_base.structures._register_structure(operator)[source]#
Decorator for methods that manipulate (operate on) the selected structure.
Checks whether a structure and selection is set and ensures that the arguments for structure and selection are passed by copy rather than reference. A pop-up warning message is shown in case that neither a structure or selection are set.
aiidalab_widgets_base.viewers module#
- class aiidalab_widgets_base.viewers.AiidaNodeViewWidget(**kwargs: Any)[source]#
Bases:
VBox
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.viewers'#
- _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.Any 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.Any 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 <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.Any 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.viewers.BandsDataViewer(**kwargs: Any)[source]#
Bases:
VBox
Viewer class for BandsData object.
- Parameters:
bands (BandsData) – BandsData object to be viewed
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.viewers'#
- _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.Any 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.Any 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 <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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>}#
- class aiidalab_widgets_base.viewers.DictViewer(**kwargs: Any)[source]#
Bases:
VBox
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.viewers'#
- _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.Any 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.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.Any 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 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, '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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'value': <traitlets.traitlets.Unicode object>}#
- value#
Viewer class for Dict object.
- Parameters:
parameter (Dict) – Dict object to be viewed
downloadable (bool) – If True, add link/button to download the content of the object
- class aiidalab_widgets_base.viewers.FolderDataViewer(**kwargs: Any)[source]#
Bases:
VBox
Viewer class for FolderData object.
- Parameters:
folder (FolderData) – FolderData object to be viewed
downloadable (bool) – If True, add link/button to download the content of the selected file in the folder
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.viewers'#
- _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.Any 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.Any 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 <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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>}#
- class aiidalab_widgets_base.viewers.NglViewerRepresentation(**kwargs: Any)[source]#
Bases:
HBox
This class represents the parameters for displaying a structure in NGLViewer.
It is utilized in the structure viewer, where multiple representations can be defined, each specifying how to visually represent a particular subset of atoms.
- __annotations__ = {}#
- __init__(style_id, indices=None, deletable=True, atom_show_threshold=1)[source]#
Initialize the representation.
- style_id: str
Unique identifier for the representation.
- indices: list
List of indices to be displayed.
- deletable: bool
If True, add a button to delete the representation.
- atom_show_threshold: int
only show the atom if the corresponding value in the representation array is larger or equal than this threshold.
- __module__ = 'aiidalab_widgets_base.viewers'#
- _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.Any 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.Any 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 <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': 'HBoxModel', '_view_count': None, '_view_module': '@jupyter-widgets/controls', '_view_module_version': '1.5.0', '_view_name': 'HBoxView', '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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>}#
- add_myself_to_atoms_object(structure: Atoms | None)[source]#
Add representation array to the structure object. If the array already exists, update it.
- atoms_in_representation(structure: Atoms | None = None)[source]#
Return an array of booleans indicating which atoms are present in the representation.
- sync_myself_to_array_from_atoms_object(structure: Atoms | None)[source]#
Update representation from the structure object.
- viewer_class = None#
- class aiidalab_widgets_base.viewers.ProcessNodeViewerWidget(**kwargs: Any)[source]#
Bases:
HTML
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.viewers'#
- _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.Any 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>>, '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.Any 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>, <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 <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': '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', '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.Any 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>, 'style': <ipywidgets.widgets.trait_types.InstanceDict object>, 'value': <traitlets.traitlets.Unicode object>}#
- class aiidalab_widgets_base.viewers.StructureDataViewer(**kwargs: Any)[source]#
Bases:
_StructureDataBaseViewer
Viewer class for AiiDA structure objects.
- Attributes:
structure (Atoms, StructureData, CifData): Trait that contains a structure object, which was initially provided to the viewer. It can be either directly set to an ASE Atoms object or to AiiDA structure object containing get_ase() method.
displayed_structure (Atoms): Trait that contains a structure object that is currently displayed (super cell, for example). The trait is generated automatically and can’t be set outside of the class.
- __annotations__ = {}#
- __init__(structure=None, **kwargs)[source]#
Initialize the viewer.
- Parameters:
configure_view – If True, add configuration tabs (deprecated).
configuration_tabs – List of configuration tabs (default: [“Selection”, “Appearance”, “Cell”, “Download”]).
default_camera – default camera (orthographic|perspective), can be changed in the Appearance tab.
- __module__ = 'aiidalab_widgets_base.viewers'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_all_representations': <bound method TraitType.default of <traitlets.traitlets.List object>>, '_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>>, 'cell': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Any object>>, 'displayed_selection': <bound method TraitType.default of <traitlets.traitlets.List object>>, 'displayed_structure': <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>, 'pk': <bound method TraitType.default of <traitlets.traitlets.Int object>>, 'selection': <bound method TraitType.default of <traitlets.traitlets.List object>>, 'structure': <bound method Union.default of <traitlets.traitlets.Union object>>, 'supercell': <traitlets.traitlets.DefaultHandler object>}#
- _descriptors = [<traitlets.traitlets.List object>, <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.ObserveHandler object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.ObserveHandler 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>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Any object>, <traitlets.traitlets.List 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.Int object>, <traitlets.traitlets.List object>, <traitlets.traitlets.Union 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 ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler 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 <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 <traitlets.traitlets.Instance object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _observe_displayed_selection_2#
- _observe_displayed_structure#
- _observe_structure#
- _observe_supercell#
- _parse_advanced_selection(condition=None)[source]#
Apply advanced selection specified in the text field.
- _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', 'cell': None, 'comm': None, 'displayed_structure': None, 'pk': 0}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'_all_representations': <traitlets.traitlets.List object>, '_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>, 'cell': <traitlets.traitlets.Instance object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Any object>, 'displayed_selection': <traitlets.traitlets.List object>, 'displayed_structure': <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>, 'pk': <traitlets.traitlets.Int object>, 'selection': <traitlets.traitlets.List object>, 'structure': <traitlets.traitlets.Union object>, 'supercell': <traitlets.traitlets.List object>}#
- _valid_structure#
- displayed_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
- pk#
An int trait.
- structure#
A trait type representing a Union type.
- class aiidalab_widgets_base.viewers._StructureDataBaseViewer(**kwargs: Any)[source]#
Bases:
VBox
Base viewer class for AiiDA structure or trajectory objects.
- Traits:
_all_representations: list, containing all the representations of the structure. input_selection: list used mostly by external tools to populate the selection field. selection: list of currently selected atoms. displayed_selection: list of currently displayed atoms in the displayed structure, which also includes super-cell. supercell: list of supercell dimensions. cell: ase.cell.Cell object.
- DEFAULT_REPRESENTATION = '_aiidalab_viewer_representation_default'#
- DEFAULT_SELECTION_COLOR = 'green'#
- DEFAULT_SELECTION_OPACITY = 0.2#
- DEFAULT_SELECTION_RADIUS = 6#
- REPRESENTATION_PREFIX = '_aiidalab_viewer_representation_'#
- __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]'}#
- __init__(configure_view=True, configuration_tabs=None, default_camera='orthographic', **kwargs)[source]#
Initialize the viewer.
- Parameters:
configure_view – If True, add configuration tabs (deprecated).
configuration_tabs – List of configuration tabs (default: [“Selection”, “Appearance”, “Cell”, “Download”]).
default_camera – default camera (orthographic|perspective), can be changed in the Appearance tab.
- __module__ = 'aiidalab_widgets_base.viewers'#
- _add_representation(_=None, style_id=None, indices=None)[source]#
Add a representation to the list of representations.
- _all_representations#
An instance of a Python list.
- _all_trait_default_generators: t.Dict[str, t.Any] = {'_all_representations': <bound method TraitType.default of <traitlets.traitlets.List object>>, '_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>>, 'cell': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.Any object>>, 'displayed_selection': <bound method TraitType.default of <traitlets.traitlets.List 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>>, 'supercell': <traitlets.traitlets.DefaultHandler object>}#
- _compute_bonds(structure, radius=1.0, color='element', povray=False)[source]#
Create an list of bonds for the structure.
- _default_supercell#
- _descriptors = [<traitlets.traitlets.List object>, <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.ObserveHandler 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>, <traitlets.traitlets.Instance object>, <ipywidgets.widgets.trait_types.TypedTuple object>, <traitlets.traitlets.Any object>, <traitlets.traitlets.List 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.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 ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>, <bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler 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>>]#
- _observe_all_representations#
- _observe_cell#
- _observe_displayed_selection#
- _observe_input_selection#
- _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', 'cell': None, 'comm': None}#
- _trait_default_generators = {'supercell': <traitlets.traitlets.DefaultHandler object>}#
- _traits: t.Dict[str, t.Any] = {'_all_representations': <traitlets.traitlets.List object>, '_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>, 'cell': <traitlets.traitlets.Instance object>, 'children': <ipywidgets.widgets.trait_types.TypedTuple object>, 'comm': <traitlets.traitlets.Any object>, 'displayed_selection': <traitlets.traitlets.List 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>, 'supercell': <traitlets.traitlets.List object>}#
- cell#
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
- delete_representation(representation: NglViewerRepresentation)[source]#
- displayed_selection#
An instance of a Python list.
- input_selection#
An instance of a Python list.
- property natoms#
Number of atoms in the structure.
- remove_viewer_components(c=None)[source]#
Remove all components from the viewer except the one specified.
- selection#
An instance of a Python list.
- supercell#
An instance of a Python list.
- property thumbnail#
aiidalab_widgets_base.wizard module#
The wizard application allows the implication of a Wizard-like GUI.
Authors:
Carl Simon Adorf <simon.adorf@epfl.ch>
- exception aiidalab_widgets_base.wizard.AtLeastTwoStepsWizardError(steps)[source]#
Bases:
ValueError
Using WizardAppWidget only makes sense if the number of setps is at least two.
- __module__ = 'aiidalab_widgets_base.wizard'#
- __weakref__#
list of weak references to the object (if defined)
- class aiidalab_widgets_base.wizard.WizardAppWidget(**kwargs: Any)[source]#
Bases:
VBox
- ICONS = {State.ACTIVE: '⌛', State.CONFIGURED: '●', State.FAIL: '×', State.INIT: '○', State.READY: '◎', State.SUCCESS: '✓'}#
- ICON_SEPARATOR = '\u2000'#
- __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.wizard'#
- _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.Any object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'selected_index': <bound method TraitType.default of <traitlets.traitlets.Int object>>}#
- _consider_auto_advance(_=None)[source]#
Determine whether the app should automatically advance to the next step.
This is performed whenever the current step is within the SUCCESS state and has the auto_advance attribute set to True.
- _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.Any object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Int 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 <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _observe_selected_index#
- _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, 'selected_index': 0}#
- _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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'selected_index': <traitlets.traitlets.Int object>}#
- reset(step=0)[source]#
Reset the app up to the given step.
For example, with step=0 (the default), the whole app is reset. With step=1, all but the first step are reset.
- selected_index#
An int trait.
- class aiidalab_widgets_base.wizard.WizardAppWidgetStep(**kwargs: Any)[source]#
Bases:
HasTraits
One step of a WizardAppWidget.
- class State(value)[source]#
Bases:
Enum
Each step is always in one specific state.
The state is used to determine:
how the step is visually presented to the user, and
whether the next step is accessible (i.e. reached the SUCCESS state).
App developers are encouraged to use the step states to couple application logic and interface. In general, all widget changes should trigger a re-evaluation of the step state, and states also determine whether certain widgets are enabled or disabled.
A step can be in one of the following states:
INIT: The initial state, usually all widgets disabled. READY: The step (widget) is ready for user input (some or all widgets enabled). CONFIGURED: The step is in a consistent configuration awaiting confirmation. ACTIVE: The step is carrying out a runtime operation. SUCCESS: A configuration has been confirmed / a runtime operation successfully finished. FAIL: A runtime operation has failed in an unrecoverable way.
Not all steps must implement all states, for example:
the first step does not need an INIT state
a step without runtime process should not have an ACTIVE or FAIL state
a “review & confirm” step does not require a READY state.
a step without configuration options (e.g. pure “review & confirm” step)
Important: The next step is only accessible if the current step is within the SUCCESS state!
- ACTIVE = 3#
- CONFIGURED = 1#
- FAIL = -1#
- INIT = 0#
- READY = 2#
- SUCCESS = 4#
- __module__ = 'aiidalab_widgets_base.wizard'#
- __annotations__ = {}#
- __module__ = 'aiidalab_widgets_base.wizard'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'auto_advance': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'state': <bound method TraitType.default of <traitlets.traitlets.UseEnum object>>}#
- _descriptors = [<traitlets.traitlets.Bool object>, <traitlets.traitlets.UseEnum object>]#
- _instance_inits = [<bound method BaseDescriptor.instance_init of <traitlets.traitlets.UseEnum object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'auto_advance': False}#
- _trait_default_generators = {}#
- _traits: t.Dict[str, t.Any] = {'auto_advance': <traitlets.traitlets.Bool object>, 'state': <traitlets.traitlets.UseEnum object>}#
- auto_advance#
A boolean (True, False) trait.
- 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
Module contents#
Reusable widgets for AiiDAlab applications.
- class aiidalab_widgets_base.AiidaNodeViewWidget(**kwargs: Any)[source]#
Bases:
VBox
- __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.viewers'#
- _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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.BasicCellEditor(**kwargs: Any)[source]#
Bases:
VBox
Widget that allows for the basic cell editing.
- __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.Any 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>>}#
- _apply_cell_transformation(_=None, atoms=None)[source]#
Apply the transformation matrix to the structure.
- _cross_validation_lock: bool#
- _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.Any 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 <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_structure#
- _reset_cell_transformation_matrix(_=None, atoms=None)[source]#
Reset the transformation matrix to identity matrix.
- _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 = {}#
- _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] = {'_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.Any 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.BasicStructureEditor(**kwargs: Any)[source]#
Bases:
VBox
Widget that allows for the basic structure (molecule and position of periodic structure in cell) editing.
- __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>>, '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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.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__ = {'_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.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.Any 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>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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>}#
- _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] = {'_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.Any 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.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__ = {'_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]'}#
- __init__(description='Select code:', enable_quick_setup=True, enable_detailed_setup=True, clear_after=None, default_calc_job_plugin=None, **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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _output_width = '460px'#
- _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, 'value': ''}#
- _trait_default_generators = {}#
- _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] = {'_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.Any 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
.
- 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.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__ = {'_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]'}#
- __init__(description='Select computer:', **kwargs)[source]#
Dropdown for configured AiiDA Computers.
description (str): Text to display before 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_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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.ElnConfigureWidget(**kwargs: Any)[source]#
Bases:
VBox
- __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.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.Any object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>}#
- class aiidalab_widgets_base.ElnExportWidget(**kwargs: Any)[source]#
Bases:
VBox
- __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.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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.ElnImportWidget(**kwargs: Any)[source]#
Bases:
VBox
- __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.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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.ExportButtonWidget(**kwargs: Any)[source]#
Bases:
Button
Export Node button.
- __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.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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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>}#
- class aiidalab_widgets_base.NodesTreeWidget(**kwargs: Any)[source]#
Bases:
Output
A tree widget for the structured representation of a nodes graph.
- NODE_TYPE = {<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'>, <class 'aiida.orm.nodes.process.workflow.workchain.WorkChainNode'>: <class 'aiidalab_widgets_base.nodes.WorkChainProcessTreeNode'>}#
- PROCESS_STATE_STYLE = {ProcessState.EXCEPTED: 'danger', ProcessState.FINISHED: 'success', ProcessState.KILLED: 'warning', ProcessState.RUNNING: 'info', ProcessState.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.Any 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.
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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>}#
- find_node(pk, namespaces=None)[source]#
Find a node by its pk and namespaces. If node is an output node, it is identified by the parent pk and namespaces, otherwise by the pk.
- nodes#
An instance of a Python tuple.
- selected_nodes#
An instance of a Python tuple.
- class aiidalab_widgets_base.OpenAiidaNodeInAppWidget(**kwargs: Any)[source]#
Bases:
VBox
- __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>>, '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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.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__ = {'_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.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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.ProcessCallStackWidget(**kwargs: Any)[source]#
Bases:
HTML
Widget that shows process call stack.
- __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.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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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>}#
- calc_info(node, _=False)[source]#
Return a string with the summary of the state of a CalculationNode.
- 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.ProcessFollowerWidget(**kwargs: Any)[source]#
Bases:
VBox
A Widget that follows a process until finished.
- __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]'}#
- __init__(process=None, followers=None, update_interval=1.0, 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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.ProcessInputsWidget(**kwargs: Any)[source]#
Bases:
VBox
Widget to select and show process inputs.
- __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.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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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: ProcessNode | None = 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.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__ = {'_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.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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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>}#
- _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] = {'_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.Any 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.ProcessMonitor(**kwargs: Any)[source]#
Bases:
HasTraits
Monitor a process and execute callback functions at specified intervals.
- __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.process'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'value': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>}#
- _cross_validation_lock: bool#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.Unicode object>]#
- _instance_inits = [<bound method ObserveHandler.instance_init of <traitlets.traitlets.ObserveHandler object>>]#
- _observe_process#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'value': ''}#
- _trait_default_generators = {}#
- _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] = {'value': <traitlets.traitlets.Unicode object>}#
- value#
A trait for unicode strings.
- class aiidalab_widgets_base.ProcessNodesTreeWidget(**kwargs: Any)[source]#
Bases:
VBox
A tree widget for the structured representation of a process graph.
- __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.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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.ProcessOutputsWidget(**kwargs: Any)[source]#
Bases:
VBox
Widget to select and show process outputs.
- __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.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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.ProcessReportWidget(**kwargs: Any)[source]#
Bases:
HTML
Widget that shows process report.
- __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.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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.ProgressBarWidget(**kwargs: Any)[source]#
Bases:
VBox
A bar showing the proggress of a process.
- __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.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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.RunningCalcJobOutputWidget(**kwargs: Any)[source]#
Bases:
VBox
Show an output of selected running child calculation.
- __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.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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.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.Any 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>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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>>]#
- _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>}#
- _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] = {'_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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'structure': <traitlets.traitlets.Instance object>}#
- static canonicalize_smiles(smiles: str) str [source]#
Canonicalize the SMILES code.
- Raises:
ValueError – if SMILES is invalid or if canonicalization fails
- 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.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__ = {'_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.Any 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 Union.default of <traitlets.traitlets.Union object>>}#
- _cross_validation_lock: bool#
- _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.Any object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Union 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 <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 = {}#
- _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] = {'_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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'structure': <traitlets.traitlets.Union object>}#
- structure#
A trait type representing a Union type.
- class aiidalab_widgets_base.StructureExamplesWidget(**kwargs: Any)[source]#
Bases:
VBox
Class to provide example structures for selection.
- __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.Any 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>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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>}#
- _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] = {'_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.Any 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.StructureManagerWidget(**kwargs: Any)[source]#
Bases:
VBox
Upload a structure and store it in AiiDA database.
- Attributes:
structure(Atoms): trait that contains the selected structure. ‘None’ if no structure is selected. structure_node(StructureData, CifData): trait that contains AiiDA structure object node_class(str): trait that contains structure_node type (as string).
- SUPPORTED_DATA_FORMATS = {'CifData': 'core.cif', 'StructureData': 'core.structure'}#
- __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]'}#
- __init__(importers, viewer=None, editors=None, storable=True, node_class=None, **kwargs)[source]#
- Arguments:
- importers(list): list of tuples each containing the displayed name of importer and the
importer object. Each object should contain ‘structure’ trait pointing to the imported structure. The trait will be linked to ‘structure’ trait of this class.
storable(bool): Whether to provide Store button (together with Store format)
- node_class(str): AiiDA node class for storing the structure.
Possible values: ‘StructureData’, ‘CifData’ or None (let the user decide). Note: If your workflows require a specific node class, better fix it here.
- __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.Any object>>, 'input_structure': <bound method Union.default of <traitlets.traitlets.Union object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'node_class': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'structure': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, 'structure_node': <bound method TraitType.default of <traitlets.traitlets.Instance object>>}#
- _change_structure_node#
- _convert_to_structure_node(structure)[source]#
Convert structure of any type to the StructureNode object.
- _cross_validation_lock: bool#
- _default_node_class#
- _descriptors = [<traitlets.traitlets.ObserveHandler object>, <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.ObserveHandler object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.ObserveHandler 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.Any object>, <traitlets.traitlets.Union object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Instance 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 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 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 <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 <traitlets.traitlets.Instance object>>]#
- _observe_input_structure#
- _observe_structure_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_class': '', 'structure': None, 'structure_node': None}#
- _structure_changed#
- _sync_structure_node()[source]#
Synchronize the structure_node trait using the currently provided info.
- _trait_default_generators = {}#
- _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] = {'_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.Any object>, 'input_structure': <traitlets.traitlets.Union object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'node_class': <traitlets.traitlets.Unicode object>, 'structure': <traitlets.traitlets.Instance object>, 'structure_node': <traitlets.traitlets.Instance object>}#
- input_structure#
A trait type representing a Union type.
- node_class#
A trait for unicode strings.
- 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
- structure_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.StructureUploadWidget(**kwargs: Any)[source]#
Bases:
VBox
Class that allows to upload structures from user’s computer.
- __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]'}#
- __init__(title='', description='Upload Structure', allow_trajectories=False)[source]#
Public constructor
- __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.Any 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 Union.default of <traitlets.traitlets.Union object>>}#
- _cross_validation_lock: bool#
- _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.Any object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Union 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 <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 = {}#
- _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] = {'_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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'structure': <traitlets.traitlets.Union object>}#
- _validate_and_fix_ase_cell(ase_structure, vacuum_ang=10.0)[source]#
Checks if the ase Atoms object has a cell set, otherwise sets it to bounding box plus specified “vacuum” space
- structure#
A trait type representing a Union type.
- class aiidalab_widgets_base.SubmitButtonWidget(**kwargs: Any)[source]#
Bases:
VBox
Submit button class that creates submit button jupyter widget.
- __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]'}#
- __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.Any 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>>}#
- _cross_validation_lock: bool#
- _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.Any 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 <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 = {}#
- _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] = {'_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.Any 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.WizardAppWidget(**kwargs: Any)[source]#
Bases:
VBox
- ICONS = {State.ACTIVE: '⌛', State.CONFIGURED: '●', State.FAIL: '×', State.INIT: '○', State.READY: '◎', State.SUCCESS: '✓'}#
- ICON_SEPARATOR = '\u2000'#
- __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.wizard'#
- _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.Any object>>, 'keys': <traitlets.traitlets.DefaultHandler object>, 'layout': <bound method TraitType.default of <ipywidgets.widgets.trait_types.InstanceDict object>>, 'log': <traitlets.traitlets.DefaultHandler object>, 'selected_index': <bound method TraitType.default of <traitlets.traitlets.Int object>>}#
- _consider_auto_advance(_=None)[source]#
Determine whether the app should automatically advance to the next step.
This is performed whenever the current step is within the SUCCESS state and has the auto_advance attribute set to True.
- _cross_validation_lock: bool#
- _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.Any object>, <traitlets.traitlets.List object>, <ipywidgets.widgets.trait_types.InstanceDict object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Int 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 <ipywidgets.widgets.trait_types.InstanceDict object>>, <bound method Instance.instance_init of <traitlets.traitlets.Instance object>>]#
- _observe_selected_index#
- _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, 'selected_index': 0}#
- _trait_default_generators = {}#
- _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] = {'_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.Any object>, 'keys': <traitlets.traitlets.List object>, 'layout': <ipywidgets.widgets.trait_types.InstanceDict object>, 'log': <traitlets.traitlets.Instance object>, 'selected_index': <traitlets.traitlets.Int object>}#
- reset(step=0)[source]#
Reset the app up to the given step.
For example, with step=0 (the default), the whole app is reset. With step=1, all but the first step are reset.
- selected_index#
An int trait.
- class aiidalab_widgets_base.WizardAppWidgetStep(**kwargs: Any)[source]#
Bases:
HasTraits
One step of a WizardAppWidget.
- class State(value)[source]#
Bases:
Enum
Each step is always in one specific state.
The state is used to determine:
how the step is visually presented to the user, and
whether the next step is accessible (i.e. reached the SUCCESS state).
App developers are encouraged to use the step states to couple application logic and interface. In general, all widget changes should trigger a re-evaluation of the step state, and states also determine whether certain widgets are enabled or disabled.
A step can be in one of the following states:
INIT: The initial state, usually all widgets disabled. READY: The step (widget) is ready for user input (some or all widgets enabled). CONFIGURED: The step is in a consistent configuration awaiting confirmation. ACTIVE: The step is carrying out a runtime operation. SUCCESS: A configuration has been confirmed / a runtime operation successfully finished. FAIL: A runtime operation has failed in an unrecoverable way.
Not all steps must implement all states, for example:
the first step does not need an INIT state
a step without runtime process should not have an ACTIVE or FAIL state
a “review & confirm” step does not require a READY state.
a step without configuration options (e.g. pure “review & confirm” step)
Important: The next step is only accessible if the current step is within the SUCCESS state!
- ACTIVE = 3#
- CONFIGURED = 1#
- FAIL = -1#
- INIT = 0#
- READY = 2#
- SUCCESS = 4#
- __module__ = 'aiidalab_widgets_base.wizard'#
- __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.wizard'#
- _all_trait_default_generators: t.Dict[str, t.Any] = {'auto_advance': <bound method TraitType.default of <traitlets.traitlets.Bool object>>, 'state': <bound method TraitType.default of <traitlets.traitlets.UseEnum object>>}#
- _cross_validation_lock: bool#
- _descriptors = [<traitlets.traitlets.Bool object>, <traitlets.traitlets.UseEnum object>]#
- _instance_inits = [<bound method BaseDescriptor.instance_init of <traitlets.traitlets.UseEnum object>>]#
- _static_immutable_initial_values: t.Dict[str, t.Any] = {'auto_advance': False}#
- _trait_default_generators = {}#
- _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] = {'auto_advance': <traitlets.traitlets.Bool object>, 'state': <traitlets.traitlets.UseEnum object>}#
- auto_advance#
A boolean (True, False) trait.
- 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