def disable_progress_bars():
    """Context manager that temporarily disables all progress bars.

    Example usage::

        import fiftyone as fo
        import fiftyone.zoo as foz

        with fo.disable_progress_bars():
            dataset = foz.load_zoo_dataset("quickstart")
    """
    prev_show_progress_bars = fo.config.show_progress_bars
    try:
        fo.config.show_progress_bars = False
        yield
    finally:
        fo.config.show_progress_bars = prev_show_progress_bars
Context manager that temporarily disables all progress bars.

    Example usage::

        import fiftyone as fo
        import fiftyone.zoo as foz

        with fo.disable_progress_bars():
            dataset = foz.load_zoo_dataset("quickstart")
    
fiftyone/core/utils.py