On Nov 9, 2017, at 13:06, Eugene Pakhomov <p1himik@gmail.com> wrote:
Hi Bryan,
I don't think this will work. 0.12.10 still tries to render all roots without checking whether it can be rendered or not. So this explicit addition of CDS to the list of roots may cause some of the roots to be not rendered. At least if they're added after the CDS.
Well, in any case, it will result in errors in JS console about non-existing methods.
Regards,
Eugene
On Fri, Nov 10, 2017 at 2:02 AM, Bryan Van de ven <bryan@bokeh.org> wrote:
FWIW I think you can explicitly add a CDS as non-visible a root:
curdoc().add_root(ColumnDataSource())
But you'll probably have to dig around with JS to get at it (I'm not sure offhand exactly what that would look like).
Bryan
> On Nov 9, 2017, at 11:46, chupach <mathieur1507@gmail.com> wrote:
>
> Thank you Bryan and Eugene
>
> Dummy glyphs, i don't like because my layout is dynamic.
> I would be curious to see the dummy model with empty render method...
>
> thanks for the quick answers, at least it is clear it is not built in yet.
>
>
>
> On Thursday, November 9, 2017 at 5:48:40 PM UTC+1, Eugene Pakhomov wrote:
> It's actually not that simple - more details can be found here: Session / Document vars · Issue #3349 · bokeh/bokeh · GitHub
>
> Personally, I'm using a dummy model that has an empty `render` method.
>
>
> On Thursday, November 9, 2017 at 11:44:41 PM UTC+7, chupach wrote:
> Struggling so much with a simple thing:
>
> To explicitly tell js to be aware of a cds (to access the data), without attaching it to a callback or other model in a layout, etc.
>
> I cannot find a way: declaring a cds in python does not mean it will make it into the document.
>
> Is there a way to achieve this simple thing ??? (besides using a dummy model attached to the cds)
>
> I am sure there must be a way.
> 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 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/94601fab-38d8-4d8f-8f93-158e8622e2bf%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
--
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/F4AA2E37-B2A5-415B-AB19-86298457CED4%40anaconda.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
--
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/CAMBZu17DBkgHFNn%3DW%3DMSJKtWOmAQfFOBYOrhgY%2BfNUUUqLXQzA%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.