Open iloveitaly opened 3 months ago
Seems fixed on https://github.com/ipython/ipython/pull/14378 side, given that there is standard interface for this there should be no need for rich
to implement support for custom interface of various projects, right?
Describe the bug
When
rich
is installed as an ipython plugin output%lsmagic
fails to output anything meaningful:This is because
__repr__
instead of__str__
is being used on theMagicsDisplay
object. TheMagicsDisplay
have a special method_repr_pretty_
. If you updateMagicsDisplay
and include:All is well.
Should
rich
look for_repr_pretty_
and use instead of__str__
or should ipython updateMagicsDisplay
?Platform
Click to expand
``` ╭─────────────────────────