MCPcopy Create free account
hub / github.com/holoviz/hvplot / _is_interactive_opt

Function _is_interactive_opt

hvplot/backend_transforms.py:65–81  ·  view source on GitHub ↗

Heuristics to detect if a bokeh option is about interactivity, like 'selection_alpha'. >>> is_interactive_opt('height') False >>> is_interactive_opt('annular_muted_alpha') True

(bk_opt)

Source from the content-addressed store, hash-verified

63
64
65def _is_interactive_opt(bk_opt):
66 """
67 Heuristics to detect if a bokeh option is about interactivity, like
68 'selection_alpha'.
69
70 >>> is_interactive_opt('height')
71 False
72 >>> is_interactive_opt('annular_muted_alpha')
73 True
74 """
75 interactive_flags = [
76 'hover',
77 'muted',
78 'nonselection',
79 'selection',
80 ]
81 return any(part in interactive_flags for part in bk_opt.split('_'))
82
83
84def _transfer_opts_cur_backend(element):

Callers 2

test_is_interactive_optFunction · 0.90
_transfer_optsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_is_interactive_optFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…