bokeh.models.selections

class IntersectRenderers(**kwargs)[source]

Bases: bokeh.models.selections.SelectionPolicy

When a data source is shared between multiple renderers, a row in the data source will only be selected if that point for each renderer is selected. The selection is made from the intersection of hit test results from all renderers.

JSON Prototype
{
  "id": "3c28a11c-0060-4aab-b416-350a6901778f",
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "name": null,
  "subscribed_events": [],
  "tags": []
}
class Selection(**kwargs)[source]

Bases: bokeh.model.Model

A Selection represents a portion of the data in a DataSource, which can be visually manipulated in a plot.

Selections are typically created by selecting points in a plot with a SelectTool, but can also be programmatically specified.

indices

property type: Seq ( Int )

The indices included in a selection.

line_indices

property type: Seq ( Int )

multiline_indices

property type: Dict ( String , Seq ( Int ) )

JSON Prototype
{
  "id": "6c32b1b3-6c37-4403-b54e-a7b2d6df23e5",
  "indices": [],
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "line_indices": [],
  "multiline_indices": {},
  "name": null,
  "subscribed_events": [],
  "tags": []
}
class SelectionPolicy(**kwargs)[source]

Bases: bokeh.model.Model

Note

This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.

JSON Prototype
{
  "id": "d48dd07d-4c84-4683-938e-76e6e96fef32",
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "name": null,
  "subscribed_events": [],
  "tags": []
}
class UnionRenderers(**kwargs)[source]

Bases: bokeh.models.selections.SelectionPolicy

When a data source is shared between multiple renderers, selecting a point on from any renderer will cause that row in the data source to be selected. The selection is made from the union of hit test results from all renderers.

JSON Prototype
{
  "id": "7b160dff-0982-4d5c-b144-63f1c5283275",
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "name": null,
  "subscribed_events": [],
  "tags": []
}