try icon indicating copy to clipboard operation
try copied to clipboard

[Feature Request] Add automatic import `from rich import inspect`

Open taranlu-houzz opened this issue 2 years ago • 0 comments

Suggested feature:

  • It would be nice to have a flag or option to automatically import the inspect() function from rich (https://rich.readthedocs.io/en/latest/introduction.html#rich-inspect). Since this tool is a great way to quickly explore/try out packages, having the power of rich.inspect() easily available seems like it would make a great pairing!
>>> inspect(pytz.timezone)
╭────────────── <function timezone at 0x10f396ac0> ──────────────╮
│ def timezone(zone):                                            │
│                                                                │
│ Return a datetime.tzinfo implementation for the given timezone │
│                                                                │
│ 37 attribute(s) not shown. Run inspect(inspect) for options.   │
╰────────────────────────────────────────────────────────────────╯

I really like this tool by the way! It is super convenient!

taranlu-houzz avatar Feb 07 '23 22:02 taranlu-houzz