This IPython Notebook contains simple examples of the line function. To clear all previously rendered cell outputs, select from the menu: Cell -> All Output -> Clear

In [ ]:
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 [ ]:
output_notebook(url="http://localhost:5006/")

In [ ]:
N = 80
x = np.linspace(0, 4*np.pi, N)
y = np.sin(x)

In [ ]:
line(x,y, color="#0000FF", tools="pan,wheel_zoom, box_zoom, reset, resize")
show()

In [ ]: