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
I'm working on implementing a progress bar that's tracking the status of jobs running in other processes spawned by subprocess.run. I noticed, though, that when these processes write to stdout, the output is awkwardly interspersed with attempts by Rich to refresh the progress bar instead of appearing "above" the progress bar as desired.
Is it possible to get Rich to play nicely in this scenario?
My plan is to pipe the output for these processes back up in to Python and echo it to the terminal manually via Console.print().
However, I was curious if there might be anything possible with maybe redirecting the stdout of these processes to something that Rich could intercept automagically :) TIA.
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on implementing a progress bar that's tracking the status of jobs running in other processes spawned by
subprocess.run
. I noticed, though, that when these processes write tostdout
, the output is awkwardly interspersed with attempts by Rich to refresh the progress bar instead of appearing "above" the progress bar as desired.Is it possible to get Rich to play nicely in this scenario?
My plan is to pipe the output for these processes back up in to Python and echo it to the terminal manually via
Console.print()
.However, I was curious if there might be anything possible with maybe redirecting the
stdout
of these processes to something that Rich could intercept automagically :) TIA.Beta Was this translation helpful? Give feedback.
All reactions