dbikard / genomenotebook

A genome browser in your Jupyter notebook
Apache License 2.0
26 stars 1 forks source link

Keep tooltip open on glyph click #4

Open seanrjohnson opened 1 year ago

seanrjohnson commented 1 year ago

It would be nice if clicking a feature glyph (like a gene, for example) would make the hover tooltip stay on even after moving the mouse away. That would hopefully allow the user to highlight and copy data out of the tooltip.

I tried a bit with Bokeh TapTool and CustomJS, but I couldn't figure it out. Might try more later.

seanrjohnson commented 9 months ago

Some possibly helpful references:

https://stackoverflow.com/questions/54481438/fixed-hovertool-tooltips-when-taping-an-element-of-a-bokeh-plot

https://github.com/bokeh/bokeh/issues/5724

https://github.com/bokeh/bokeh/issues/3365