@display_hook
def element_svg_display(element, max_frames, max_branches):
    if 'svg' not in Store.display_formats:
        return None
    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]
    # Current renderer does not support SVG
    if 'svg' not in renderer.params('fig').objects:
        return None
    data, info = renderer(element, fmt='svg')
    return data


# display_video output by default, but may be set to first_frame,
# middle_frame or last_frame (e.g. for testing purposes)
Used to render elements to SVG if requested in the display formats.
dataset/ETHPy150Open ioam/holoviews/holoviews/ipython/display_hooks.py/element_svg_display