How to install Rich into code
stdlib module?
#2462
Unanswered
itsthejoker
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a program that uses the
code
module to create a "repl-alike", and I'd like to use Rich in it. However, I'm not sure how to properly do this and things don't seem to be working. Here's what I have so far:This launches a REPL as expected, but trying to print anything makes it explode. Anyone have a suggestion on how to implement this properly (or even if it's possible)?
Edit: I have resorted to possibly the dumbest solution.
I feel like there has to be a better way to do this, but at least it works...?
Beta Was this translation helpful? Give feedback.
All reactions