def _grid_data_to_data_widget(grid_data):
    """Turn a vtk grid into Data widgets."""
    data = []
    for key, value in grid_data.items():
        d = Data(key, [
            Component(comp_name, comp['array'])
            for comp_name, comp in value.items()
        ])
        data.append(d)

    return data
Turn a vtk grid into Data widgets.
ipygany/ipygany.py