How to set active_tools for Layout?

Hi Community,

I’m trying to set active tools for a HoloViews Layout. However, this did not work as expected:

(
  hv.Curve([1,2,3]).opts(active_tools=['box_zoom']) + 
  hv.Scatter([1,2,3]).opts(active_tools=['box_zoom'])
)

The active tool reverts back to ‘Pan’.
Screenshot from 2021-03-19 10-50-03

Q1: What should I do if I want a single tool bar that defaults to, say, ‘box_zoom’ for all elements?
Q2: What should I do if I want separate tool bars for the elements in a Layout?

Thanks!

Answer my own Q2: setting merge_tools=False yields separate tool bars.

(
  (hv.Curve([1,2,3]).opts(active_tools=['box_zoom']) + 
   hv.Scatter([1,2,3]).opts(active_tools=['box_zoom'])
  ).opts(merge_tools=False)
)

I’ve been wondering the same thing! It seems like it is not possible at the moment, as far as I can tell :confused: