In [1]:
from bokeh.models import Button
from bokeh.plotting import figure, gridplot
from bokeh.io import vform, output_notebook, show

output_notebook()


Loading BokehJS ...

Warning: Requesting CDN BokehJS version '0.12.0dev1' from Bokeh development version '0.12.0dev1-235-g6837e90'. This configuration is unsupported and may not work!


In [2]:
w = 300
h = 150

fig1 = figure(width=w, height=h, tools=[])
fig1.circle(x=[0,1,3,4], y=[10,4,1,5])

fig2 = figure(width=w, height=h, tools=[])
fig2.circle(x=[0,1,3,4], y=[10,4,1,5])

fig3 = figure(width=w, height=h, tools=[])
fig3.circle(x=[0,1,3,4], y=[10,4,1,5])

fig4 = figure(width=w, height=h, tools=[])
fig4.circle(x=[0,1,3,4], y=[10,4,1,5])

grid = gridplot([[fig1, fig2], [fig3, fig4]])
button = Button(label="Click")

v = vform(button, grid)
show(v)


Out[2]:

<Bokeh Notebook handle for In[2]>


In [5]:
import bokeh
bokeh.__version__


Out[5]:
'0.12.0dev1-235-g6837e90'

In [ ]: