I wondered if it’s possible to use pn.FlexBox together with hv.Curve (or other holoviews objects) in such a way that the height and width of the individual hv.Curve objects are dictated by the FlexBox. For example, I would like to specify that one curve takes up 2 parts, and the other 1 part of the available width.
I’ve tried various combinations such as the example below, but it seems that the FlexBox cannot dictate the width of the hv.Curves ultimately.
Great! Yes, that worked, thanks for the suggestion Andrew. (I’ve confirmed it works both in Jupyter notebook and browser)
Here is the complete working example. It was important to inject the styles argument both for the HoloViews elements and the FlexBox element. The 4:1 width ratio seems approximate, not sure what’s going on, but perhaps it is a default minimum width that is preventing the true ratio.