Relative Content

Tag Archive for pythonprocessbokehdashboard

Immediately interrupting Bokeh processes using a button click

I’m working on a Bokeh application where I have a function update_data() that performs some time-consuming tasks. I want to add a way to immediately interrupt all ongoing processes when a button is clicked. The problem is that when I click the “Interrupt” button, the command to interrupt the process gets queued and only executes after the current process (e.g., update_data()) finishes, which can take up to 20 seconds. This is not desirable.