ecolab.iter_tab#
- etils.ecolab.iter_tab(
- iterable: collections.abc.Iterable[etils.ecolab.tabs._T],
- *,
- prefix: str | None = None,
Displays the items of an iterable each in a numbered tab.
Example:
for ex in ecolab.iter_tab(ds[:5]): print(ex) # Each example is displayed in a separate tab.
- Parameters:
iterable – The iterable to iterate over.
prefix – The prefix to use for the tab titles.
- Yields:
The items from the iterable.