def bokeh_fig(a, b): x = [1, 2, 3, 4, a] y = [6, 7, 2, 4, b] plot = figure(title="bokeh example", x_axis_label='x', y_axis_label='y') plot.line(x, y, legend="Temp", line_width=2) return plot