

def display(obj, raw=False, **kwargs):
    '\n    Renders any HoloViews object to HTML and displays it\n    using the IPython display function. If raw is enabled\n    the raw HTML is returned instead of displaying it directly.\n    '
    if isinstance(obj, GridSpace):
        html = grid_display(obj)
    elif isinstance(obj, (CompositeOverlay, ViewableElement)):
        html = element_display(obj)
    elif isinstance(obj, (Layout, NdLayout, AdjointLayout)):
        html = layout_display(obj)
    elif isinstance(obj, (HoloMap, DynamicMap)):
        html = map_display(obj)
    else:
        return (repr(obj) if raw else IPython.display.display(obj, **kwargs))
    return (html if raw else IPython.display.display(IPython.display.HTML(html)))

dataset/ETHPy150Open ioam/holoviews/holoviews/ipython/display_hooks.py display/original