# Clicking on bins in JupyROOT histograms to open links

**URL:** <https://root-forum.cern.ch/t/clicking-on-bins-in-jupyroot-histograms-to-open-links/55203>\
**Category:** Newbie\
**Tags:** python, root, jupyter\
**Created:** [June 6, 2023, 2:48pm UTC](https://root-forum.cern.ch/t/clicking-on-bins-in-jupyroot-histograms-to-open-links/55203 "2023-06-06T14:48:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bulukutl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/7cd45c/32.png) [@bulukutl](https://root-forum.cern.ch/u/bulukutl)\
**Post date:** [June 6, 2023, 2:48pm UTC](https://root-forum.cern.ch/t/clicking-on-bins-in-jupyroot-histograms-to-open-links/55203/1 "2023-06-06T14:48:28Z")

</div>

Hello,

is it possible to create in JupyROOT a figure with interactivity so that clicking on bins (for example on a TH1) with the mouse can lead to the opening of a link in the browser?

As far as I understand it is in general possible to achieve such functionality on the JsROOT side: [JSROOT Click Handling - #5 by linev](https://root-forum.cern.ch/t/jsroot-click-handling/30999/5)

But it is not clear to me if such an event handler can be configured from within python or C++ with ROOT functions. I have looked through the documentation and examples but couldn’t locate a way that would allow this, so any tips would be appreciated if indeed it is possible.

Thank you in advance!  
Cheers,  
Berkin

* * *

_ROOT Version:_ ROOT 6.28  
_Platform:_ JupyROOT  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [June 6, 2023, 3:19pm UTC](https://root-forum.cern.ch/t/clicking-on-bins-in-jupyroot-histograms-to-open-links/55203/2 "2023-06-06T15:19:16Z")

</div>

Hi Berkin,

For the moment it is not possible to inject custom JavaScript code into jupyter jsroot drawing.

And even if it would be possible - `jupyter` will try to block such kind of operations.

Regards,  
Sergey
