May I ask if there is a way to mix bokeh server code and custom JS in a single call back?
For example, I have a button for download, but I want to generate the download file on demand. Something like
# some server side code.
# prepare the target file
# JS code, redirecting the browser to download the file after the preparation is done.
button = Button()
Something like the readfile() function in PHP that sends a file to user’s browser?