1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import holoviews as hv curve = hv.Curve(range(10)) # Could be any HoloViews object renderer = hv.renderer('bokeh') # Using renderer save renderer.save(curve, 'graph.html') # Convert to bokeh figure then save using bokeh plot = renderer.get_plot(curve).state from bokeh.io import output_file, save, show output_file("graph.html") show(plot) |