

def register_to_hub(self, hub):
    hub.subscribe(self, core.message.ComponentsChangedMessage, nonpartial(self._update_components))

dataset/ETHPy150Open glue-viz/glue/glue/viewers/custom/qt/custom_viewer.py ComponenentElement.register_to_hub/original