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 [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/")


Using saved session configuration for http://localhost:5006/
To override, pass 'load_from_config=False' to Session

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]: