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

[python] h2o.no_progress as a contextmanager #16453

Open
hutch3232 opened this issue Nov 7, 2024 · 1 comment
Open

[python] h2o.no_progress as a contextmanager #16453

hutch3232 opened this issue Nov 7, 2024 · 1 comment
Labels

Comments

@hutch3232
Copy link

Is your feature request related to a problem? Please describe.
I'd love to be able temporarily disable the progress bar while running chunks of h2o code using with.

Describe the solution you'd like
I think the contextmanager decorator would solve this.

Describe alternatives you've considered
I could write a try finally block.

Additional context
Looks like R can do this based on #6991

@tomasfryda
Copy link
Contributor

We already have internal no_progress_block (see h2o.explanation._explain.no_progress_block) which is a context manager. Changing no_progress to context manager was couple years ago considered but we didn't want to change API so we added a new function that works as a context manager.

I'll keep this issue open until we export the no_progress_block so it's not so hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants