This IPython Notebook contains simple examples of the rect 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 figure, output_notebook, show
In [2]:
N = 80
In [3]:
x = np.linspace(0, 4*np.pi, N)
y = np.sin(x)
In [4]:
output_notebook()