import numpy as np from bokeh.plotting import figure, output_notebook, show
output_notebook()
x = np.arange(-np.pi, np.pi, 0.01) y = np.sin(x) fig = figure() fig.line(x, y) show(fig)