def __len__(self):
        return max([(len(v) if hasattr(v, '__len__') else 1) for v in self.values()] + [0])
The maximum depth of all the elements. Matches the semantics
dataset/ETHPy150Open ioam/holoviews/holoviews/core/spaces.py/GridSpace.__len__