current_indexΒΆ

property ImageWidget.current_index: dict[str, int]ΒΆ

Get or set the current index

Returns:

index – | dict for indexing each dimension, provide a dict with indices for all dimensions used by sliders or only a subset of dimensions used by the sliders. | example: if you have sliders for dims β€œt” and β€œz”, you can pass either {"t": 10} to index to position 10 on dimension β€œt” or {"t": 5, "z": 20} to index to position 5 on dimension β€œt” and position 20 on dimension β€œz” simultaneously.

Return type:

Dict[str, int]