You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am using some python code which uses logging to output messages, so that they can be silenced or redirected to files as appropriate.
Is it possibile to configure a tqdm progress bar to behave exactly like logging.log(...) calls?
In particular I would like to redirect the progress bar to the current log file as if it was written with the logging module.
I am aware of tqdm.contrib.logging.logging_redirect_tqdm, but this is not my use case, because this context manager redirects logging calls to tqdm.write, instead I would like to make tqdm.write write to the same logfile as logging calls.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am using some python code which uses logging to output messages, so that they can be silenced or redirected to files as appropriate.
Is it possibile to configure a
tqdm
progress bar to behave exactly likelogging.log(...)
calls?In particular I would like to redirect the progress bar to the current log file as if it was written with the
logging
module.I am aware of
tqdm.contrib.logging.logging_redirect_tqdm
, but this is not my use case, because this context manager redirectslogging
calls totqdm.write
, instead I would like to maketqdm.write
write to the same logfile aslogging
calls.Beta Was this translation helpful? Give feedback.
All reactions