How do I embed a datasource without attaching it to a glyph?

I want to pass 2 datasources to a page:

  • 1 small source connected with a plot

  • 1 large source not connected to any plot,which hosts a larger dataset that is then selectively used to update the smaller datasource in JS

Is there a way to do this? Thanks

Solution found: simply include it in the CustomJS definition

···

On Wednesday, 2 September 2015 21:46:32 UTC+1, Pythonic wrote:

I want to pass 2 datasources to a page:

  • 1 small source connected with a plot
  • 1 large source not connected to any plot,which hosts a larger dataset that is then selectively used to update the smaller datasource in JS

Is there a way to do this? Thanks

Glad you found the solution.

For a code sample for future reference, the “interactive bubble” example includes a pretty extreme example of this - embedding 60+ DataSources which are subsequently used by the slider:

The data sources are generated here: https://github.com/bokeh/bokeh/blob/master/examples/interactions/interactive_bubble/gapminder.py#L36
and inserted into CustomJS here: https://github.com/bokeh/bokeh/blob/master/examples/interactions/interactive_bubble/gapminder.py#L103

···

On Wed, Sep 2, 2015 at 2:23 PM, Pythonic [email protected] wrote:

Solution found: simply include it in the CustomJS definition

On Wednesday, 2 September 2015 21:46:32 UTC+1, Pythonic wrote:

I want to pass 2 datasources to a page:

  • 1 small source connected with a plot
  • 1 large source not connected to any plot,which hosts a larger dataset that is then selectively used to update the smaller datasource in JS

Is there a 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/8aee5ffb-0563-45bc-b889-7b5fb9a1cb6a%40continuum.io.

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