-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Make dynamic_ncols=True the default #370
Comments
could slow things down to constantly check terminal width. The ethos of |
Sorry to comment on a closed issue, but is this the right place to vote for this? I frequently run into this issue when working with long-running python scripts in tmux panes. A common use case for me is that I "zoom" into a pane when running the script and then zoom back out once I see a progress bar. Unfortunately, this doesn't work by default with tqdm. I only just found out about As far as I can tell from here, the overhead due to dynamic resizing is relatively small. However, if it cannot be added as a default, would it be possible to add an environment variable or a config that tqdm could check for to enable dynamic ncols? This would let me avoid having to add |
I found it really annoying that I need to check the dynamic_ncols every time, I think there should be something dedicated for tmux use case like from tqdm import dynamic_tqdm as tqdm that would work for any legacy code. |
Could just add this to the top of your library: from functools import partial
from tqdm import tqdm as std_tqdm
tqdm = partial(std_tqdm, dynamic_ncols=True) |
@casperdcl Awesome! Thank you. |
Thanks everyone for your patience! Just released |
Any reason why
dynamic_ncols
is not True by default?read the known issues
The text was updated successfully, but these errors were encountered: