parambokeh/view.py
def render_function(obj, view):
    """
    The default Renderer function which handles HoloViews objects.
    """
    try:
        import holoviews as hv
    except:
        hv = None

    if hv and isinstance(obj, hv.core.Dimensioned):
        renderer = hv.renderer('bokeh')
        if not view._notebook:
            renderer = renderer.instance(mode='server')
        plot = renderer.get_plot(obj, doc=view._document)
        if view._notebook:
            plot.comm = view._comm
        plot.document = view._document
        return plot.state
    return obj
def render_function(obj, view):
    try:
        import holoviews as hv
    except:
        hv = None

    if hv and isinstance(obj, hv.core.Dimensioned):
        renderer = hv.renderer('bokeh')
        if not view._notebook:
            renderer = renderer.instance(mode='server')
        plot = renderer.get_plot(obj, doc=view._document)
        if view._notebook:
            plot.comm = view._comm
        plot.document = view._document
        return plot.state
    return obj
def render_function ( obj , view ) : try : import holoviews as hv except : hv = None if hv and isinstance ( obj , hv . core . Dimensioned ) : renderer = hv . renderer ( 'bokeh' ) if not view . _notebook : renderer = renderer . instance ( mode = 'server' ) plot = renderer . get_plot ( obj , doc = view . _document ) if view . _notebook : plot . comm = view . _comm plot . document = view . _document return plot . state return obj
The default Renderer function which handles HoloViews objects.
The default Renderer function which handles HoloViews objects .