☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

overlapping button clicks cause graph to 'run off'

Community Support
Adam_Hubbell
Adam_Hubbell

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.

⌁   Link to post
Bryan
Bryan

This definitely seems like a bug. Can you make an issue with a complete, minimal, run-able test case to reproduce the problem?

Thanks,

Bryan

···

On Jul 25, 2016, at 10:39 AM, adam32122@gmail.com wrote:

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.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/8cbfdbab-222f-45cf-b719-a492775810a8%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
<bokeh_error2.PNG><bokeh_error1.PNG>

⌁   Link to post

End of archived discussion · Replies are disabled