Skip to content

Change tqdm import to tqdm.auto for Jupyter compatability #147

@HaHeho

Description

@HaHeho

Thank you for the extensive rework of the tool. I wasn't functional before, but now totally serves my purpose.

Currently, downloading bulk data with a progress bar does not work very well from within a Jupyter notebook. This could be improved by, e.g. changing the tqdm imports in bulk_data_mixins.py from from tqdm import tqdm to from tqdm.auto import tqdm. In that case, the display backend should automatically choose the best option between tqdm.notebook and tqdm.std depending on the context.
No other parts of the code would have to change. The only other place mentioning tqdm is test_bulk_data.py.

Do you think this is a good idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions