Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

143
Views
Bokeh Tooltip: mantenga la posición haciendo clic

Tengo un bokeh rect y una información sobre herramientas que muestra información sobre cada celda en el rect. Me gustaría hacer clic en una celda y la información sobre herramientas debe permanecer mientras haga clic en otra celda en el rect. Supongo que podría funcionar con JS pero no sé cómo implementarlo.

Mi función de información sobre herramientas se ve así:

 from bokeh.models import HoverTool def hovertool(): tooltips = """ <div> <style> .city { background-color: tomato; width:550px!important; max-height:900px!important; overflow-y:auto; } </style> <div class="city"> <h2>Paris</h2> <div> <span style="font-size: 18px; font-weight: bold; color:black; background-color: white;"> Test </span> </div> </div> </div> """ TOOLTIPS = HoverTool(tooltips = tooltips) return TOOLTIPS

En mi función principal lo uso como:

 TOOLTIPS = hovertool() p.add_tools(TOOLTIPS) show(p)

¡Gracias por cualquier pista!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!