Hi
I am using bokeh 0.6.0 and when I try to display an image in an ipython notebook with
import numpy as np
import bokeh.plotting as bkh
bkh.output_notebook()
N = 1000
x = np.linspace(0, 10, N)
y = np.linspace(0, 10, N)
xx, yy = np.meshgrid(x, y)
d = np.sin(xx)*np.cos(yy)
bkh.image(
image=[d], x=[0], y=[0], dw=[10], dh=[10], palette=[“Spectral-11”],
x_range=[0, 10], y_range=[0, 10],
tools=“pan,wheel_zoom,box_zoom,reset,previewsave”, name=“image_example”
)
bkh.show() # open a browser
The first time the image is showed correctly in the browser but if I re-run the cell I get the following error:
Javascript error adding output!
TypeError: Object # has no method ‘throttled_render’
See your browser Javascript console for more details.
Any ideas what the problem is?
Thanks