In [ ]:
from bokeh.plotting import scatter, output_notebook, show, gridplot
from bokeh.objects import ColumnDataSource
import numpy as np
output_notebook()

In [ ]:
N=100
x = np.linspace(0, 4*np.pi, N)
y = np.sin(x)
z = np.cos(x)
source = ColumnDataSource()
source.add(data=x, name='x')
source.add(data=y, name='y')
source.add(data=z, name='z')
s1 = scatter('x', 'y', source=source, width=300, height=300)
#note that s2 shares the same x data source, but has a different y
s2 = scatter('x', 'z', source=source, width=300, height=300)
gridplot([[s1,s2]])
show()

In [ ]: