On Jul 9, 2017, at 20:46, Alexandre Avanian <alexandre.avanian@gmail.com> wrote:
Thanks for the answer.
What I'm trying to do: a graph which datas ource is modified (not streamed, data is replace, fully or only some columns) upon some widgets inputs. It's working as I expect and I'm not trying explicitly to share CDS between docs.
My question was: taking that blog example & recommendation to get the doc via app.create_document before doing a show(app, notebook="") was not working for me. And I now understand from your comment this is normal and the only reason it works in the blog's case is because it's re-instantiating new CDS on each doc creation (thus not sharing them, the blog's notebook has basically two documents loaded).
On Sunday, July 9, 2017 at 2:58:50 PM UTC+8, nicolas.fr wrote:
Well, I'm not sure to understand what you are trying to do but, it's clear that you can't reuse the same CDS instance in another document. Generally speaking, bokeh doesn't allow to share models between documents (a limitation that makes sense).
> the intent is to update the content of these sources on events
I don't see what you mean here. Bokeh offers several ways to 'stream' new data and update the associated plots accordingly. But, once more, whatever is update mode you use, you will not be able to share you data sources between several documents.
--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/7c30c007-bc2b-415c-80b1-8dbfb92e1b6b%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.