I’m running into a similar problem, where the graph ‘runs off’ of the bottom right corner of it’s container, as seen in the pictures. I have a function that adds a line to the plot, changes the plot title, and updates the legend of the plot. This function runs when a button is clicked, and if I click the button a second time, before the first iteration of the function has finished, the graph skedaddles, and the inspect element console mentions ‘Uncaught TypeError: Cannot read property ‘draw_legend’ of undefined’ . I tried to disable the button, but the disable functionality of the widgets doesn’t seem to work, and when I tried temporarily changing the on_click function, I encountered an infinite loop, also having a boolean to make sure only a single iteration of the loop is running didn’t seem to work either.



