I am getting error: Bokeh Error: duplicate edit variable and my web page is showing blank. I am getting this on all of my reports including few that I just copied from documentation. But a week ago or so they worked fine. I do not use plotting to more than one plot on any of the reports, should not be any duplicate error. But noticed that it is sometimes opening 2 html pages instead of 1 page, not sure if it is related or not.
I reinstalled bokeh with the command “conda install bokeh” and the error gone for few reports but then it appeared again end started for all reports again.
Hope some one can help. I am using windows 10, 64 bits,
bokeh 0.12.4 py35_0 , python 3.
Here is the one report script that I am running (this is just taken from documenation):
from bokeh.layouts import column
from bokeh.models import CustomJS, ColumnDataSource, Slider
from bokeh.plotting import Figure, output_file, show
x = [x*0.005 for x in range(0, 200)]
y = x
source = ColumnDataSource(data=dict(x=x, y=y))
plot = Figure(plot_width=400, plot_height=400)
plot.line(‘x’, ‘y’, source=source, line_width=3, line_alpha=0.6)
def callback(source=source, window=None):
data = source.data
f = cb_obj.value
x, y = data[‘x’], data[‘y’]
for i in range(len(x)):
y[i] = window.Math.pow(x[i], f)
slider = Slider(start=0.1, end=4, value=1, step=.1, title=“power”,
layout = column(slider, plot)