How to print live display to stderr? #3143
Unanswered
brokedarius
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks, I have this piece of code here where I would like to have only the print statement at the end in the stdout and not the live display with its progress bars.
That way if I assign my command in a bash or powershell terminal, I wont end up with that information in the output since I only need the link that will be printed at the end.
I tried with contextlib to redirect, it does work when I do it with None but then I cannot see the progress anymore at all and with stderr it keeps printing the progress on a new line at every update, basically messing with rich Live() dynamics which beats the whole purpose.
The goal here is to display both the progress and resulting links in the terminal after uploading the images but without having the progress in any output should I redirect that a text file or variable using another shell.
Any help will be appreciated, thanks again.
Beta Was this translation helpful? Give feedback.
All reactions