

def main():
    from glue.core.data import Data
    from glue.core.data_collection import DataCollection
    import numpy as np
    x = np.random.random((5, 5))
    y = (x * 3)
    data = DataCollection(Data(label='test', x=x, y=data))
    CustomComponentWidget.create_component(data)
    for d in data:
        print(d.label)
        for c in d.components:
            print(('\t%s' % c))

dataset/ETHPy150Open glue-viz/glue/glue/dialogs/custom_component/qt/widget.py main/VarMisuse@71/79 `y`->`data`