Skip to content

tqdm.auto instead of tqdm.autonotebook + refresh#759

Merged
RemDelaporteMathurin merged 2 commits into
festim-dev:fenicsxfrom
RemDelaporteMathurin:tqdm-auto
Apr 22, 2024
Merged

tqdm.auto instead of tqdm.autonotebook + refresh#759
RemDelaporteMathurin merged 2 commits into
festim-dev:fenicsxfrom
RemDelaporteMathurin:tqdm-auto

Conversation

@RemDelaporteMathurin
Copy link
Copy Markdown
Collaborator

@RemDelaporteMathurin RemDelaporteMathurin commented Apr 18, 2024

I noticed that when running in notebooks there was a bunch of warnings from tqdm.

After a bit of reading (jmcarpenter2/swifter#67) I switched autonotebook to auto and that got rid of the warning.

Also, the progress bar in notebooks is slick!

image

I also added a refresh call after the timestepping loop to make sure the bar displays 100% (and even still sometimes it doesn't work...)

@RemDelaporteMathurin RemDelaporteMathurin added enhancement New feature or request fenicsx Issue that is related to the fenicsx support labels Apr 18, 2024
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.49%. Comparing base (f75ac21) to head (fa260c3).
Report is 1 commits behind head on fenicsx.

Additional details and impacted files
@@           Coverage Diff            @@
##           fenicsx     #759   +/-   ##
========================================
  Coverage    98.49%   98.49%           
========================================
  Files           28       28           
  Lines         1532     1533    +1     
========================================
+ Hits          1509     1510    +1     
  Misses          23       23           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@RemDelaporteMathurin RemDelaporteMathurin changed the title tqdm.auto instead of tqdm.autonotebook tqdm.auto instead of tqdm.autonotebook + refresh Apr 18, 2024
@RemDelaporteMathurin RemDelaporteMathurin merged commit c7a4641 into festim-dev:fenicsx Apr 22, 2024
@RemDelaporteMathurin RemDelaporteMathurin deleted the tqdm-auto branch April 22, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request fenicsx Issue that is related to the fenicsx support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant