

def set_display_hooks(ip):
    html_formatter = ip.display_formatter.formatters['text/html']
    html_formatter.for_type(ViewableElement, pprint_display)
    html_formatter.for_type(UniformNdMapping, pprint_display)
    html_formatter.for_type(AdjointLayout, pprint_display)
    html_formatter.for_type(Layout, pprint_display)
    png_formatter = ip.display_formatter.formatters['image/png']
    png_formatter.for_type(ViewableElement, element_png_display)
    svg_formatter = ip.display_formatter.formatters['image/svg+xml']
    ip.for_type(ViewableElement, element_svg_display)

dataset/ETHPy150Open ioam/holoviews/holoviews/ipython/display_hooks.py set_display_hooks/VarMisuse@88/152 `svg_formatter`->`ip`