it was suggested that in order to resize a plot that I embed the plot into html and then use javascript resize syntax. So instead I embedded my plot into Pyscript and did resizing with pure CSS
Bokeh drag events only apply to the canvas and AFAICT the drag handle is outside the canvas.
Do plot.width and plot.height not generate change events? There may be some reason that they donāt in responsive sizing modes (I donāt know for sure, offhand), but thatās what I would start with.
Edit: actually plot.inner_height and plot.inner_width might be better options to try, I think they should trigger regardless. Their values subtract any toolbar and other extra extentsā¦ they report the dimensions of the āplot frameā, i.e the axes, inside the canvas, which is actually what I think you want given that you are computing an angleā¦
the beauty part of Pyscript is that I can share my files like I am doing with you. If u click my link again , then view source , u will see the changes I made
PyScript is great! As a separate plug, using Panel you can take (almost) any Bokeh and (Panel) app and convert it to Pyodide or PyScript from the commandline without writing any HTML boilerplate. See these docs for more details.