Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ Thing
Class
Thing
tests/test_pretty.py:68–70 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
66
console = Console(file=io.StringIO(), force_jupyter=True)
67
68
class
Thing:
69
def
_repr_html_(self):
70
return
"hello"
71
72
console.begin_capture()
73
_ipy_display_hook(Thing(), console=console)
Callers
5
test_ipy_display_hook__repr_html
Function · 0.70
test_ipy_display_hook__multiple_special_reprs
Function · 0.70
test_ipy_display_hook__no_special_repr_methods
Function · 0.70
test_ipy_display_hook__special_repr_raises_exception
Function · 0.70
test_pretty_namedtuple_custom_repr
Function · 0.70
Calls
no outgoing calls
Tested by
5
test_ipy_display_hook__repr_html
Function · 0.56
test_ipy_display_hook__multiple_special_reprs
Function · 0.56
test_ipy_display_hook__no_special_repr_methods
Function · 0.56
test_ipy_display_hook__special_repr_raises_exception
Function · 0.56
test_pretty_namedtuple_custom_repr
Function · 0.56