It says : It is important to note that FigureWidgetdoes not use the renderers framework discussed above, so you should not use theshow()figure method or theplotly.io.showfunction onFigureWidget objects.
So, you all functions, on_* (such as on_change) which are FigureWidget specific will not work is you use the “show” function.