rich.pretty.pprint has an argument expand_all. Is there a way to get that functionality in the Console or Style api? #3722
Unanswered
WillMeakin
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Have a look at how pprint is implemented. |
Beta Was this translation helpful? Give feedback.
2 replies
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 want either Console or Style to have the behaviour of pprint's expand_all argument. Any way to do this easily?
OUTPUT:
console print: <-- this text is yellow
{'one': 1, 'two': 2, 'three': 3}
'pprint: <-- this text is not yellow (wrong)'
{
│ 'one': 1,
│ 'two': 2,
│ 'three': 3
}
I want to use console instead of pprint because:
Beta Was this translation helpful? Give feedback.
All reactions