You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requested by /u/svldsmnn on reddit, e.g. audio playback on mouse hovers or clicks (TapTool can be a good idea if the crosshair hits multiple points and can't decide which one to pick up).
For running audio playbacks, This gist can be helpful despite coming from a time of bokeh 0.12.
Also there should be image display in the tooltip, should something like an "image" field be present.
The text was updated successfully, but these errors were encountered:
phurwicz
changed the title
Add tooltip interaction support for audio data
Add hover/tap tool interaction support for audio data
Dec 24, 2020
phurwicz
changed the title
Add hover/tap tool interaction support for audio data
Add hover/tap tool interaction support for image/audio data
Dec 24, 2020
015b9de added a simple autoplay audio div, and checked that the existing image div is functional.
Because images/audios are files rather than simple strings, one would need to put http://<url-to-image.png> or http://<url-to-audio.mp3> in an image or audio field of the dataframe, respectively. file:///<path-to-file> could work in principle, but modern browsers block this for security concerns.
However, right now there are no high-level APIs (like hover.recipes) that make image/audio tooltips easy to use. Manually creating BokehXXXExplorer and passing tooltips=bokeh_hover_tooltip(...) can be too steep of a learning curve, not to mention having to account for everything else under the hood in recipes, such as link_selection or subscribe_update_push.
Leaving this issue open until the feature becomes more accessible.
Requested by
/u/svldsmnn
on reddit, e.g. audio playback on mouse hovers or clicks (TapTool
can be a good idea if the crosshair hits multiple points and can't decide which one to pick up).For running audio playbacks, This gist can be helpful despite coming from a time of
bokeh 0.12
.Also there should be image display in the tooltip, should something like an "image" field be present.
The text was updated successfully, but these errors were encountered: