Bokeh Error Model `Button' does not exist. This could be due to a widget or a custom model not bein

Getting this error while running a simple bokeh file

If you are embedding Bokeh plots explicitly using e.g. bokeh.components, instead of letting Bokeh handle everything, then you are responsible for including all the necessary pieces of BokehJS yourself, as described here:

  https://bokeh.pydata.org/en/latest/docs/user_guide/embed.html#components

There is a separate bokeh-widgets.js that you will need to include in your template.

Also, please provide much more information when asking questions. You are more likely to get a good response (or any reponse at all) if you include actual details of exactly what you are doing, rather than make the person reading try to speculate what you are doing.

Thanks,

Bryan

···

On Sep 17, 2017, at 10:52, Subhajit Karmakar <[email protected]> wrote:

Getting this error while running a simple bokeh file

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c4742837-f544-4132-8854-ee5223889ce6%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi ,

Sorry for the inconvenience. I am running this code as below :-
Getting the error as below :-

from bokeh.plotting import figure, output_file, show

x = [1, 2, 3, 4, 5]
y = [6, 7, 8, 7, 3]

output_file(“multiple.html”)

p = figure(plot_width=1100, plot_height=650)

add both a line and circles on the same plot

p.line(x, y,line_color=“red”, line_width=2)
p.circle(x, y, fill_color=“green”, size=8)

show(p)

Hi,

WhenI put that code in script test.py and run "python test.py" with bokeh 0.12.9 installed, it runs and works as expected without problems. You will have to provide more information about your system, versions, and how exactly you are running things (in a script? in the notebook?) The code below does not user or reference the Button widget at all, so something strange is going on that is specific to your situation.

Bryan

···

On Sep 17, 2017, at 11:12, Subhajit Karmakar <[email protected]> wrote:

from bokeh.plotting import figure, output_file, show

x = [1, 2, 3, 4, 5]
y = [6, 7, 8, 7, 3]

output_file("multiple.html")

p = figure(plot_width=1100, plot_height=650)

# add both a line and circles on the same plot
p.line(x, y,line_color="red", line_width=2)
p.circle(x, y, fill_color="green", size=8)

show(p)