In [5]:
import pandas as pd
import holoviews as hv
hv.extension('bokeh')

df = pd.read_csv('stress_strain_data.csv', sep=',', header=None, skiprows=0)
df.columns = ['strain', 'stress']

holoviews_curve = hv.Curve(df)

renderer = hv.renderer('bokeh')

# Convert to bokeh figure then save using bokeh
bokeh_plot = renderer.get_plot(holoviews_curve).state

from bokeh.io import output_file, show
output_file("bokeh_plot_from_holoviews.html")
show(bokeh_plot)

from IPython.core.display import HTML
HTML("bokeh_plot_from_holoviews.html")


INFO:bokeh.io.state:Session output file 'bokeh_plot_from_holoviews.html' already exists, will be overwritten.
Out[5]:
Bokeh Plot

In [ ]: