

def register_to_hub(self, hub):
    hub.subscribe(self, DataCollectionAddMessage, (lambda x: self._add_data(x.data)))
    hub.subscribe(self, DataCollectionDeleteMessage, (lambda x: self._remove_data(x.data)))

dataset/ETHPy150Open glue-viz/glue/glue/core/subset_group.py SubsetGroup.register_to_hub/original