Bokeh server callback initiated from Flask application Bokeh server callback initiated from Flask application flask flask

Bokeh server callback initiated from Flask application


A quick and dirty way looks to be to right-click on the Bokeh button in your browser and select 'Inspect Element'. You should see the defined onClick function. From there you should be able to provide that same onClick function to your button in your Flask app:

$(document).ready(function () {    document.getElementById("flaskButton").onclick = [onClick function from Bokeh button];});

The above only applies if you wish to keep both buttons.