aiidalab_widgets_base package#

Subpackages#

Submodules#

aiidalab_widgets_base.bug_report module#

Provide more user friendly error messages and automated reporting.

Authors:

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.get_environment_fingerprint(encoding='utf-8')[source]#
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.bug_report.parse_environment_fingerprint(fingerprint, encoding='utf-8')[source]#

decode the environment fingerprint and return the data as a dictionary.

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__ = {}#
__init__(**kwargs)[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>>, '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#
_reset()[source]#
_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 of value_trait, per_key_traits.

message#

A trait for unicode strings.

on_setup_code(_=None)[source]#

Setup an AiiDA code.

on_setup_code_success(function)[source]#
refresh()[source]#
class aiidalab_widgets_base.computational_resources.AiidaComputerSetup(**kwargs: Any)[source]#

Bases: VBox

Inform AiiDA about a computer.

__annotations__ = {}#
__init__(**kwargs)[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>>, '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>>}#
_computer_exists(label)[source]#
_configure_computer(computer: Computer, transport: str)[source]#
_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#
_reset()[source]#
_run_callbacks_if_computer_exists(label)[source]#

Run things on an existing computer

_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>}#
_validate_computer_settings()[source]#
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 of value_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 of value_trait, per_key_traits.

message#

A trait for unicode strings.

on_setup_computer(_=None)[source]#

Create a new computer.

on_setup_computer_success(function)[source]#
property some_values_provided#
test(_=None)[source]#
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>]#
static _full_code_label(code)[source]#
_get_codes()[source]#

Query the list of available codes.

_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'#
_setup_new_code(_=None)[source]#
_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.

allow_hidden_codes#

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 of value_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>]#
_get_computers() list[source]#

Get the list of available computers.

_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 of value_trait, per_key_traits.

refresh(_=None)[source]#

Refresh the list of configured computers.

select_by_label(label)[source]#

Select computer by computer label.

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>>}#
_can_login()[source]#

Check if it is possible to login into the remote host.

_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>]#
_handle_ssh_password()[source]#

Send a password to a remote computer.

_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>>]#
_is_in_config()[source]#

Check if the SSH config file contains host information.

_observe_ssh_config#
_observe_ssh_connnection_state#
_on_setup_ssh_button_pressed(_=None)[source]#

Setup ssh connection.

_on_verification_mode_change(change)[source]#

which verification mode is chosen.

property _private_key: tuple[str | None, bytes | None]#

Unwrap private key file and setting filename and file content.

_reset()[source]#
_send_password(_=None)[source]#
_ssh_copy_id()[source]#

Run the ssh-copy-id command and follow it until it is completed.

_ssh_keygen()[source]#

Generate ssh key pair.

_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>}#
_write_ssh_config(private_key_abs_fname=None)[source]#

Put host information into the config file.

key_pair_prepare()[source]#

Prepare key pair for the ssh connection.

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 of value_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
thread_ssh_copy_id()[source]#

Copy public key on the remote computer, on a separate thread.

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__ = {}#
__init__()[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>>, '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>>]#
_on_template_variable_filled(_)[source]#

Callback when a template variable is filled.

_render()[source]#

Render the template variables widget.

_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 of value_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 of value_trait, per_key_traits.

reset()[source]#

Reset the widget.

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 of value_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_quick_setup(_=None)[source]#

Go through all the setup steps automatically.

_on_reset(_=None)[source]#

Reset the database and the widget.

_on_setup_code_success()[source]#

Callback that is called when the code is successfully set up.

_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>}#
_update_layout()[source]#

Update the layout to hide or show the bundled quick_setup/detailed_setup.

message#

A trait for unicode strings.

reset()[source]#

Reset the widget.

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__ = {}#
__init__(title='', **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>>, '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>>]#
_on_click_query(_=None)[source]#

Call query when the corresponding button is pressed.

_on_select_structure(change)[source]#

When a structure was selected.

static _query(idn=None, formula=None)[source]#

Make the actual query.

_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>}#
_code_changed(change=None)[source]#

Update code settings.

_computer_changed(change=None)[source]#

callback when new computer selected

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>]#
_domain_changed(change=None)[source]#

callback when new domain selected

_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 of value_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 of value_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 of value_trait, per_key_traits.

database_source#

A trait for unicode strings.

reset(_=None)[source]#

Reset widget and traits

class aiidalab_widgets_base.databases.OptimadeQueryWidget(**kwargs: Any)[source]#

Bases: VBox

AiiDAlab-specific OPTIMADE Query widget

Useful as a widget to integrate with the aiidalab_widgets_base.structures.StructureManagerWidget, embedded into applications.

NOTE: embedded for OptimadeQueryFilterWidget was introduced in optimade-client version 2020.11.5.

Parameters:
__annotations__ = {}#
__init__(embedded: bool = True, title: str | None = None, **kwargs) None[source]#

Public constructor

__module__ = 'aiidalab_widgets_base.databases'#
_all_trait_default_generators: t.Dict[str, t.Any] = {'_display_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_dom_classes': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, '_model_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_model_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_msg_callbacks': <bound method TraitType.default of <traitlets.traitlets.Instance object>>, '_property_lock': <bound method TraitType.default of <traitlets.traitlets.Dict object>>, '_states_to_send': <bound method TraitType.default of <traitlets.traitlets.Set object>>, '_view_count': <bound method TraitType.default of <traitlets.traitlets.Int object>>, '_view_module': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_module_version': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, '_view_name': <bound method TraitType.default of <traitlets.traitlets.Unicode object>>, 'box_style': <bound method TraitType.default of <traitlets.traitlets.CaselessStrEnum object>>, 'children': <bound method TraitType.default of <ipywidgets.widgets.trait_types.TypedTuple object>>, 'comm': <bound method TraitType.default of <traitlets.traitlets.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>}#
_update_structure(change: dict) None[source]#

New structure chosen

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__ = {}#
__init__(**kwargs)[source]#

Public constructor

__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>}#
check_connection(_=None)[source]#
display_eln_config(value=None)[source]#

Display ELN configuration specific to the selected type of ELN.

erase_current_eln_from_configuration(_=None)[source]#
get_config()[source]#
save_eln_configuration(_=None)[source]#
set_current_eln_as_default(_=None)[source]#
update_eln_configuration(eln_instance, eln_config)[source]#
update_list_of_elns()[source]#
write_to_config(config)[source]#
class aiidalab_widgets_base.elns.ElnExportWidget(**kwargs: Any)[source]#

Bases: VBox

__annotations__ = {}#
__init__(path_to_root='../', **kwargs)[source]#

Public constructor

__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>}#
handle_output(_=None)[source]#
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

send_to_eln(_=None)[source]#
class aiidalab_widgets_base.elns.ElnImportWidget(**kwargs: Any)[source]#

Bases: VBox

__annotations__ = {}#
__init__(path_to_root='../', **kwargs)[source]#

Public constructor

__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.elns.connect_to_eln(eln_instance=None, **kwargs)[source]#

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__ = {}#
__init__(process, **kwargs)[source]#

Public constructor

__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>}#
export_aiida_subgraph(change=None)[source]#

Perform export when the button is pressed

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__ = {}#
__init__(*args, **kwargs)[source]#

Public constructor

__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>}#
copy_to_clipboard(change=None)[source]#

Copy text to clipboard.

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__': {}})#
__init__(operators, additional_operands=None)[source]#
__module__ = 'aiidalab_widgets_base.misc'#
__weakref__#

list of weak references to the object (if defined)

convert(expr)[source]#

Convert expression to postfix.

execute(expression)[source]#

Execute the provided expression.

haslessorequalpriority(opa, opb)[source]#

Priority of the different operators

is_operator(opx)[source]#

Identifies operators

static iscloseparenthesis(operator)[source]#

Identifies closed paretheses.

static isopenparenthesis(operator)[source]#

Identifies open paretheses.

static parse_infix_notation(condition)[source]#

Convert a string containing the expression into a list of operators and operands.

aiidalab_widgets_base.nodes module#

Widgets to work with AiiDA nodes.

class aiidalab_widgets_base.nodes.AiidaNodeTreeNode(**kwargs: Any)[source]#

Bases: Node

__annotations__ = {}#
__init__(pk, name, **kwargs)[source]#

Public constructor

__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_openend#
_descriptors = [<traitlets.traitlets.ObserveHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.DefaultHandler object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Instance object>, <traitlets.traitlets.Dict object>, <traitlets.traitlets.Set object>, <traitlets.traitlets.Int object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Unicode object>, <traitlets.traitlets.Enum object>, <traitlets.traitlets.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__ = {}#
__init__(name, parent_pk, namespaces: Tuple[str, ...] = (), **kwargs)[source]#

Public constructor

__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': True, 'icon': 'folder', 'icon_image': '', 'name': 'Node', 'open_icon': 'plus', 'opened': True, 'selected': False, 'show_icon': True}#
_trait_default_generators = {}#
_traits: t.Dict[str, t.Any] = {'_display_callbacks': <traitlets.traitlets.Instance object>, '_id': <traitlets.traitlets.Unicode object>, '_model_module': <traitlets.traitlets.Unicode object>, '_model_module_version': <traitlets.traitlets.Unicode object>, '_model_name': <traitlets.traitlets.Unicode object>, '_msg_callbacks': <traitlets.traitlets.Instance object>, '_property_lock': <traitlets.traitlets.Dict object>, '_states_to_send': <traitlets.traitlets.Set object>, '_view_count': <traitlets.traitlets.Int object>, '_view_module': <traitlets.traitlets.Unicode object>, '_view_module_version': <traitlets.traitlets.Unicode object>, '_view_name': <traitlets.traitlets.Unicode object>, 'close_icon': <traitlets.traitlets.Unicode object>, 'close_icon_style': <traitlets.traitlets.Enum object>, 'comm': <traitlets.traitlets.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__ = {}#
__init__(pk, **kwargs)[source]#

Public constructor

__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]'}#
__init__(**kwargs)[source]#

Public constructor

__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>>}#
classmethod _build_tree(root)[source]#

Recursively build a tree nodes graph for a given tree node.

_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_called(root)[source]#
classmethod _find_children(root)[source]#

Find all children of the provided AiiDA node.

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#
_observe_tree_selected_nodes(change)[source]#
_refresh_output()[source]#
_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': ''}#
classmethod _to_tree_node(node, name=None, **kwargs)[source]#

Convert an AiiDA node to a tree node.

_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>}#
_update_tree_node(tree_node)[source]#
classmethod _walk_tree(root)[source]#

Breadth-first search of the node tree.

find_node(pk)[source]#
nodes#

An instance of a Python tuple.

selected_nodes#

An instance of a Python tuple.

update(_=None)[source]#

Refresh nodes based on the latest state of the root process and its children.

class aiidalab_widgets_base.nodes.OpenAiidaNodeInAppWidget(**kwargs: Any)[source]#

Bases: VBox

__annotations__ = {}#
__init__(path_to_root='../', **kwargs)[source]#

Public constructor

__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>}#
get_tab_content(apps_type)[source]#
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__': {}})#
__init__(app, path_to_root, node)[source]#
__module__ = 'aiidalab_widgets_base.nodes'#
__weakref__#

list of weak references to the object (if defined)

to_html_string()[source]#

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__ = {}#
__init__(**kwargs)[source]#

Public constructor

__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__ = {}#
__init__(title='Process Call Stack', path_to_root='../', **kwargs)[source]#

Public constructor

__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

update()[source]#

Update the call stack that is shown.

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>}#
follow(detach=False)[source]#

Initiate following the process with or without blocking.

on_completed(function)[source]#

Run functions after a process has been completed.

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

update()[source]#
class aiidalab_widgets_base.process.ProcessInputsWidget(**kwargs: Any)[source]#

Bases: VBox

Widget to select and show process inputs.

__annotations__ = {}#
__init__(process=None, **kwargs)[source]#

Public constructor

__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

show_selected_input(change=None)[source]#

Function that displays process inputs selected in the inputs Dropdown widget.

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__ = {}#
__init__(path_to_root='../', **kwargs)[source]#

Public constructor

__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>]#
_follow(update_interval)[source]#
_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.

start_autoupdate(update_interval=10)[source]#
update(_=None)[source]#

Perform the query.

class aiidalab_widgets_base.process.ProcessMonitor(**kwargs: Any)[source]#

Bases: HasTraits

Monitor a process and execute callback functions at specified intervals.

__annotations__ = {}#
__init__(callbacks=None, on_sealed=None, timeout=None, **kwargs)[source]#
__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>>]#
_monitor_process(process_uuid)[source]#
_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>}#
join()[source]#
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__ = {}#
__init__(title='Process Tree', **kwargs)[source]#

Public constructor

__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#
_observe_tree_selected_nodes(change)[source]#
_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.

update(_=None)[source]#
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__ = {}#
__init__(process=None, **kwargs)[source]#

Public constructor

__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

show_selected_output(change=None)[source]#

Function that displays process output selected in the outputs Dropdown widget.

class aiidalab_widgets_base.process.ProcessReportWidget(**kwargs: Any)[source]#

Bases: HTML

Widget that shows process report.

__annotations__ = {}#
__init__(title='Process Report', **kwargs)[source]#

Public constructor

__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

update()[source]#

Update report that is shown.

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__ = {}#
__init__(title='Progress Bar', **kwargs)[source]#

Initialize ProgressBarWidget.

__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

update()[source]#

Update the bar.

class aiidalab_widgets_base.process.RunningCalcJobOutputWidget(**kwargs: Any)[source]#

Bases: VBox

Show an output of selected running child calculation.

__annotations__ = {}#
__init__(title='Running Job Output', **kwargs)[source]#

Public constructor

__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

update()[source]#

Update the displayed output.

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>}#
on_btn_submit_press(_=None)[source]#

When submit button is pressed.

on_click(function)[source]#
on_submitted(function)[source]#

Run functions after a process has been submitted successfully.

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.process.get_running_calcs(process)[source]#

Takes a process and yeilds running children calculations.

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__ = {}#
__init__(title='Cell transform')[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 TraitType.default of <traitlets.traitlets.Instance object>>}#
_apply_cell_parameters(_=None, atoms=None)[source]#

Apply the cell parameters to the structure.

_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}#
_to_conventional_cell(_=None, atoms=None)[source]#
_to_primitive_cell(_=None, atoms=None)[source]#
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__ = {}#
__init__(title='')[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>>, '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>,