One note first: In your example you didn’t specify any event handler associated to the widgets you’ve defined. This fires the entire app (Plots and Widgets) recreation everytime. Honestly I’m a bit surprised simpleapp implements this behaviour by default and I’m -1 about this. I’ll probably open an issue to consider improving this on the efforts that are in act to improve bokeh-server.
I’ve downloaded your script and was able to reproduce the issue. Honestly I’m not sure why this is happening… But just for the sake of more clarity on identifying the app flow I’ve just defined an extra function to layout the simple app and defined an event handler to handle the specific slider updates. With that I’m just updating the map plot without recreating everything else. This seems to solve the issue for me locally. Can you check if the attached script works for you too?
Also, as an advice I suggest to break the code and the components creation into smaller functions as I’ve seen that the simpleapp workflow can easily fall into quite long functions (with considerable long boilerplate code) that end up being hard to easily work with when debugging/modifying.
google_map_app_simple.py (22.6 KB)
On Sun, Aug 9, 2015 at 8:40 AM, TJ [email protected] wrote:
Any Update on this??
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/0f64b104-8040-467f-ab7c-8a3ac51bcc65%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Senior Software Engineer, Bokeh