We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A StackOverflow user reported another way to redirect all outputs to tqdm.write(), which is a lot more concise and as effective as ours, even more so in cases where we want to redirect all printings in all channels, not just stdout:
import inspect import tqdm # store builtin print old_print = print def new_print(*args, **kwargs): # if tqdm.tqdm.write raises error, use builtin print try: tqdm.tqdm.write(*args, **kwargs) except: old_print(*args, ** kwargs) # globaly replace print with new_print inspect.builtins.print = new_print
Maybe we should add it to the documentation?
The text was updated successfully, but these errors were encountered:
Also an example custom handler for logging should be added:
http://stackoverflow.com/a/38739634/1121352
(there is also another issue here IIRC, should dig it up)
Sorry, something went wrong.
Another way of redirecting output, when using multiprocessing: http://stackoverflow.com/a/19421432/1121352
tqdm.write()
No branches or pull requests
A StackOverflow user reported another way to redirect all outputs to tqdm.write(), which is a lot more concise and as effective as ours, even more so in cases where we want to redirect all printings in all channels, not just stdout:
Maybe we should add it to the documentation?
The text was updated successfully, but these errors were encountered: