-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[help] How can I apply depth control in rich.pretty? #1585
Comments
There isn't a depth parameter ATM. Although it will detect a recursive data structure. Open to adding one. I will take a look at some point, but would also accept a PR. |
@willmcgugan Thank you sir. If I can accomplish as PR will let you know. |
This is not implemented by attribute |
v11.0.0 has a max_depth argument for pretty printing |
Did I solve your problem? Why not buy the devs a coffee to say thanks? |
11.0.0 Added Added max_depth arg to pretty printing Textualize/rich#1585 Added vertical_align to Table.add_row Textualize/rich#1590 Fixed Fixed issue with pretty repr in jupyter notebook Textualize/rich#1717 Fix Traceback theme defaults override user supplied styles Textualize/rich#1786 Changed breaking Deprecated rich.console.RenderGroup, now named rich.console.Group breaking Syntax.__init__ parameter lexer_name renamed to lexer Syntax constructor accepts both str and now a pygments lexer Textualize/rich#1748
pprint has a
depth
argument in order to control nesting level.Would it be possible to apply similiar apprach on
rich.pretty
in order to save its results into a file?The text was updated successfully, but these errors were encountered: