In [1]:
import numpy as np
from bokeh.plotting import *
To run these examples you must execute the command python bokeh-server in the top-level Bokeh source directory first.
In [2]:
output_notebook(url="http://localhost:5006/")
In [3]:
N = 80
x = np.linspace(0, 4*np.pi, N)
y = np.sin(x)
In [6]:
p = figure()
p.line(x,y, color="tomato", line_width=2)
show(p)
In [4]: