dynamic embedded plot

Hi, in order to embed a bokeh plot in a larger html page i can do

script, div = components(plot)

which is great.
However, lets say i have a dropdownbox on my site also, and then i want to e.g. add some annotations or add a new line or change the data or in some other way change the actual content of the bokeh plot without having to reload the entire page, what is then the preferred way to do this?

Thanks

There are lots of ways to achieve this
unfortunately it’s har d to
know without more details.

                    If you can load all the

data, can compute the data chang es client side, or get it with an ajax
callback, then you can probably hook it all
into your plot with CustomJS callbacks and still use
components to put the plots in there.

                            If you want to be

python only, or do some kind of server side process ing, you may
wan t
to use bokeh server and use
autoload_server to put
a server plot
into you r page - although this
is a more complicated
deployment -
because you’ll need an
instance of bokeh server
runni ng
somewhere.

                                                  If it's just
                                                    tweaking

data and adding
lines you’re
probably going
to be able to do it all client
side - but you’ll need to know a little JS.

Best,

Sarah Bird

···

On 8/17/16 2:06 PM, Bokeh coder wrote:

    Hi, in order to embed a bokeh plot in a larger html

page i can do

script, div = components(plot)
    which is great.

    However, lets say i have a dropdownbox on my site also, and then

i want to e.g. add some annotations or add a new line or change
the data or in some other way change the actual content of the
bokeh plot without having to reload the entire page, what is
then the preferred way to do this?

    Thanks

  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/38d7cbee-c97f-4a16-beac-ca5193148dde%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/38d7cbee-c97f-4a16-beac-ca5193148dde%40continuum.io?utm_medium=email&utm_source=footer).

  For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).


Sarah Bird
Developer, Bokeh

    [
      ![Continuum Analytics](http://docs.continuum.io/_static/img/ContinuumWordmark.png)
    ](http://continuum.io)