You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently rich.pretty.install() accepts most of the parameters allowed by rich.pretty.pprint(), but it doesn't have max_depth. I would add this parameter to install().
What problem does it solve for you?
I would like to use the rich install hook, but also to customize the pretty printing behaviour, specifically the max_depth argument to simplify the result presentation. It isn't trivial to implement this in user code, because the install() function is actually quite complex, and difficult to modify.
The text was updated successfully, but these errors were encountered:
Actually, is there a chance we could just forward all the kwargs from install to the Pretty constructor or _ipy_display_hook? It seems like it would be more maintainable that way.
How would you improve Rich?
Currently
rich.pretty.install()
accepts most of the parameters allowed byrich.pretty.pprint()
, but it doesn't havemax_depth
. I would add this parameter toinstall()
.What problem does it solve for you?
I would like to use the rich install hook, but also to customize the pretty printing behaviour, specifically the
max_depth
argument to simplify the result presentation. It isn't trivial to implement this in user code, because theinstall()
function is actually quite complex, and difficult to modify.The text was updated successfully, but these errors were encountered: