

@grammar(list)
def viewport(value):
    '2-element list of ints : Dimensions of the viewport\n\n        The viewport is a bounding box containing the visualization. If the\n        dimensions of the visualization are larger than the viewport, then\n        the visualization will be scrollable.\n\n        If undefined, then the full visualization is shown.\n        '
    if (len(value) != 2):
        raise ValueError('viewport must have 2 dimensions')
    for v in value:
        _assert_is_type('viewport dimension', v, int)
        if (v < 0):
            raise ValueError('viewport dimensions cannot be negative')

dataset/ETHPy150Open wrobstory/vincent/vincent/visualization.py Visualization.viewport/original