Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable progress bar in Jupyter notebooks #208

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

jobrachem
Copy link
Contributor

Currently, we use tqdm(disable=None, ...) for the sampling progress bar:

It disables the progress bar in non-TTY environments. A TTY (teletypewriter) refers to environments like a terminal or console that supports interactive input/output. In non-TTY environments (e.g., file redirection or certain automated scripts), the progress bar is disabled.

Unfortunately, this has the effect of disabling the progress bar in Jupyter notebooks. This PR removes this argument.

If progress bar printing should be disabled, for example because you are running code on a server and logging output to a file, users can use the existing setting EngineBuilder.show_progress = False.

This notebook can be used to see the effect:
test_sampling.ipynb.zip

@jobrachem jobrachem self-assigned this Aug 28, 2024
@jobrachem jobrachem added enhancement New feature or request comp:goose This issue is related to the goose module labels Aug 28, 2024
@jobrachem jobrachem requested a review from wiep September 11, 2024 13:39
Copy link
Contributor

@wiep wiep left a comment

Choose a reason for hiding this comment

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

lgtm 😅

@jobrachem jobrachem merged commit 822ab1e into main Sep 25, 2024
4 checks passed
@jobrachem jobrachem deleted the enable-progress-bar-in-jupyter branch September 25, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:goose This issue is related to the goose module enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants