Skip to content

Nested Progress Bars #355

@sadraheydari

Description

@sadraheydari

Hi, and thank you for maintaining this great package!

I am using IJulia on VSCode, and I’d like to display nested progress bars (like Python’s tqdm library), where:

  • The outer progress bar stays visible and updates across iterations.
  • The inner progress bar appears below it, resets for each outer iteration, and updates in place (not leaving completed lines above).

Currently, each finished inner bar remains printed in the console, so the output looks like this:

  Inner loop 1 100%|█████████████████████████████████████| Time: 0:00:00
  Inner loop 2 100%|█████████████████████████████████████| Time: 0:00:00
  ...
Progress: 100%|█████████████████████████████████████████| Time: 0:00:03

Instead, I’d like something like:

Outer loop  40%|███████████-----------------------------|  ETA: 0:03
  Inner loop 2/10  70%|███████████████████--------------|  ETA: 0:01

I know that the tqdm Python library has the leave=False option that deletes the progress bar after completion. Is it possible to implement this here as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions