
Hi,
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
def download_func():
# some server side code.
# prepare the target file
# JS code, redirecting the browser to download the file after the preparation is done.
button = Button()
button.on_click(download_func)
``
Something like the readfile() function in PHP that sends a file to user’s browser?
Thanks,
Hongyi
