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)
| 63 | |
| 64 | |
| 65 | def _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 | |
| 84 | def _transfer_opts_cur_backend(element): |
no outgoing calls
searching dependent graphs…