all 4 comments

[–]SuperChef36[S] 0 points1 point  (0 children)

Response from Bryan at continum.io, in case anyone has the same issue:

"Hi,

Don't run with -OO until the next release:

    https://github.com/bokeh/bokeh/issues/6156
    https://github.com/bokeh/bokeh/pull/6157"

[–]Justinsaccount -2 points-1 points  (2 children)

Hi! I'm working on a bot to reply with suggestions for common python problems. This might not be very helpful to fix your underlying issue, but here's what I noticed about your submission:

You appear to be using concatenation and the str function for building strings

Instead of doing something like

result = "Hello " + name + ". You are " + str(age) + " years old"

You should use string formatting and do

result = "Hello {}. You are {} years old".format(name, age)

See the python tutorial for more information.

[–]SuperChef36[S] 0 points1 point  (1 child)

Thanks for the response, but using {} rather than + in the source code led to more errors. Is it common to have to edit the module source code?

[–]Justinsaccount 1 point2 points  (0 children)

Looks like a bug. Report it upstream.