Any way to get a rich renderable to string? #2374
Answered
by
willmcgugan
confidentialsecrets
asked this question in
Q&A
-
I want to write Panel and/or Tree to a text file, (without color obviously) this can be done manually by copying and pasting it from the terminal after printing it but I need to automate it, any way to get the string from the Tree or Panel? |
Beta Was this translation helpful? Give feedback.
Answered by
willmcgugan
Jun 30, 2022
Replies: 1 comment
-
https://rich.readthedocs.io/en/latest/console.html#capturing-output |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
confidentialsecrets
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://rich.readthedocs.io/en/latest/console.html#capturing-output