Skip to content

Using tqdm.rich for progressbar? #2580

@erikvansebille

Description

@erikvansebille

What version of Parcels are you running?

v4

Is your feature request related to a problem?

I saw that copernicusmarine has a much cleaner styled progressbar for Jupyter notebooks (see screenshots below) and was wondering if we want to adapt their tool

CopernicusMarine:
Image

Parcels:
Image

Describe the solution you'd like

It turns out that copernicusmarine uses tqdm.rich, while Parcels uses 'normal' tqdm. Do we want to use this too?

From the website, it seems that the functionality is still experimental, though...

Describe alternatives you've considered

Leave the current implementation of the progress bar, as it functions as expected

Additional context

Note, AI statement: I asked Claude Opus 4.6 "Why is the progressbar for copernicusmarine green/blue and for Parcels only black?"

Answer: "Copernicusmarine uses the rich library for its progress bars, which supports colored/styled output in terminals by default. Parcels uses tqdm, which outputs plain text progress bars without color styling.

If you want colored Parcels progress bars, you could install tqdm[notebook] and use the notebook widget, or you could open a feature request on the Parcels repo to adopt rich. But this is a cosmetic difference in the two libraries' dependencies — it doesn't affect functionality."

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue that has not been reviewed by a Parcels team member

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions