In [4]:
from bokeh.io import output_notebook, show
output_notebook()


BokehJS successfully loaded.

Warning: BokehJS previously loaded


In [5]:
from bokeh.models import Plot, ColumnDataSource, Rect, DataRange1d
PLOT_PROPS = dict(
    plot_width=300, plot_height=300, min_border=0, toolbar_location=None, title=None
)
source = ColumnDataSource({'x': [0], 'y': [0]})
plot = Plot(x_range=DataRange1d(), y_range=DataRange1d(), **PLOT_PROPS)
rect = Rect(x='x', y='y', width=10, height=10)
plot.add_glyph(source, rect)
show(plot)



In [ ]: