Support index_position for hv.Table
@@ -11,6 +11,7 @@ from ...streams import Buffer
from ...core.util import dimension_sanitizer, datetime_types
from ..plot import GenericElementPlot
from .plot import BokehPlot
+from .util import bokeh_version
class TablePlot(BokehPlot, GenericElementPlot):
@@ -19,8 +20,11 @@ class TablePlot(BokehPlot, GenericElementPlot):
width = param.Number(default=400)
- style_opts = ['row_headers', 'selectable', 'editable',
- 'sortable', 'fit_columns', 'scroll_to_selection']
+ style_opts = (
+ ['row_headers', 'selectable', 'editable',
+ 'sortable', 'fit_columns', 'scroll_to_selection'] +
+ (['index_position'] if bokeh_version >= '0.12.15' else [])
+ )
finalize_hooks = param.HookList(default=[], doc="""
Optional list of hooks called when finalizing a column.
