Skip to content

Switch to tqdm.auto for progress bar, which is better for Jupyter Notebook compatibility #555

Open
aflaxman wants to merge 3 commits intoihmeuw:mainfrom
aflaxman:main
Open

Switch to tqdm.auto for progress bar, which is better for Jupyter Notebook compatibility #555
aflaxman wants to merge 3 commits intoihmeuw:mainfrom
aflaxman:main

Conversation

@aflaxman
Copy link
Member

@aflaxman aflaxman commented Feb 5, 2026

Title: Add Jupyter notebook support for progress bars

Description

  • Category: feature
  • JIRA issue: None

Testing

  • all tests pass (pytest --runslow)

…patibility (#1)

* Add Jupyter notebook support for progress bars

Create a new progressbar utility module that automatically detects
Jupyter notebook environments and uses tqdm.notebook when appropriate.
This provides a better user experience with HTML-based progress bars
in Jupyter notebooks while maintaining terminal-based bars otherwise.

Changes:
- Add progressbar.py with _is_notebook() detection and progress_bar() helper
- Update interface.py and noise.py to use the new utility
- Set proper position values for nested bars (0 for outer, 1 for inner)
Copy link
Collaborator

@rmudambi rmudambi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're missing a changelog update

CLAUDE.md Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to add these markdown files to the repo.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with this - at least until we decide as a team what sort of general-purpose instructions are relevant.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

K

@stevebachmeier
Copy link
Contributor

We're missing a changelog update

@aflaxman Addignt his changelog update is required to actually release this (it won't happen automatically, but it is necessary).

@aflaxman aflaxman requested review from a team, pletale and zmbc as code owners February 5, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments