Skip to content

[NEW FEATURE] switch from progressbar to tqdm #216

@paquiteau

Description

@paquiteau

When running multiples algorithms sequentially (like for instance reconstructing 800 volumes of an fMRI scan), the output gets cluttered by progressbars .

tqdm is the goto package nowadays for progress bar displays and management. It is faster, lighter, allows for nested progress bar and has great notebook support.

What I propose is to add a progressbar argument to the SetUp class in algorithms/base.py, so that the user can provide a customized tqdm object if needed (for nested progressbar for instance, use of color, notebooks runs, common progress bar for multiples runs of the algorithm etc)

The change will be mostly in place as progressbar and tqdm exposes almost similar APIs.

Also, we could display some extra information (like cost evaluation) alongside with the iteration progress

Are you planning to submit a Pull Request?

  • Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions