def ipy_display_hook(value: Any) -> None:
    assert (console is not None)
    if (isinstance(value, JupyterRenderable) or (value is None)):
        return
    if (console.is_jupyter and any((attr.startswith('_repr_') for attr in dir(value)))):
        return
    if hasattr(value, '_repr_mimebundle_'):
        return
    if isinstance(value, ConsoleRenderable):
        console.line()
    console.print((value if isinstance(value, RichRenderable) else Pretty(value, overflow=overflow, indent_guides=indent_guides, max_length=max_length, max_string=max_string, expand_all=expand_all, margin=12)), crop=crop)
def ipy_display_hook(value: Any) -> None:
    assert (console is not None)
    if (isinstance(value, JupyterRenderable) or (value is None)):
        return
    if (console.is_jupyter and any((attr.startswith('_repr_') for attr in dir(value)))):
        return
    if hasattr(value, '_repr_mimebundle_'):
        return
    if isinstance(value, ConsoleRenderable):
        console.line()
    console.print((value if isinstance(value, RichRenderable) else Pretty(value, overflow=overflow, indent_guides=indent_guides, max_length=max_length, max_string=max_string, expand_all=expand_all, margin=12)), crop=crop)