

@display_hook
def element_display(element, max_frames, max_branches):
    info = process_object(element)
    if info:
        return info
    backend = Store.current_backend
    if (type(element) not in Store.registry[backend]):
        return None
    renderer = Store.renderers[backend]
    return renderer.html(element, fmt=renderer.fig)

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