In [ ]:
import holoviews as hv
from holoviews import opts
from bokeh.models import HTMLTemplateFormatter
hv.extension('bokeh')
In [ ]:
name = ['homepage', 'github', 'chat']
link = ['http://holoviews.org', 'https://github.com/ioam/holoviews', 'https://gitter.im/ioam/holoviews']
table = hv.Table({'Name':name, 'Link':link}, kdims=[], vdims=['Name', 'Link'])
In [ ]:
opts.defaults(opts.Table(width=500))
def apply_format(plot, element):
plot.handles['plot'].columns[1].formatter=HTMLTemplateFormatter(template='<a href="<%= value %>"><%= value %></a>')
table.options(hooks=[apply_format])