How to redirect output of rich progress bar to file? #13229
Answered
by
tshu-w
ZeguanXiao
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
When using rich progress bar with shell command like python train.py > file.log 2>&1, the file.log don't save any progress bar output. But check rich library documents, it says rich will write to sys.stdout by default. Anyone know how to do that? |
Beta Was this translation helpful? Give feedback.
Answered by
tshu-w
Jun 7, 2022
Replies: 1 comment
-
In fact, it does redirect to file.log and you can see them if you wait until all is over. I think maybe you can submit an issue and see if PL can keep flushing when running. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ZeguanXiao
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In fact, it does redirect to file.log and you can see them if you wait until all is over. I think maybe you can submit an issue and see if PL can keep flushing when running.