Hi. I am trying to capture an effective event where the width of a figure() changes because the user resized it. The on_change method for figure() does not seem to generate a callback for attr ‘width’. For example:
def foo(attr, old, new):
print('printing plot width:')
print(new)
plot.on_change('width', foo)
Also, on_event does not seem to be a good option as the only thing I can capture here with figure() that seems to come close to what I want is MouseMove, but I can’t be sure that the user will actually trigger a mouse move when resizing the browser window (the mouse may never enter the plot/figure). To be sure, here, I would in a callback determine if the width changed.
Maybe there is some better way to do this by detecting a change event from the browser somehow, so maybe somebody can suggest something there. But also I figured there would be someway that Bokeh could sort of natively indicate when the width of figure() had changed.
Any help/advice would be greatly appreciated.

