The first "download data.json" click runs the self.on_click_download function, but a subsequent click does not run the function (even though a file is downloaded). Maybe there's a file buffer? I'm looking at documentation and haven't found an indication of what is going on (yet).
Clicking "Download data.json" multiple times without reloading the panel results in exactly duplicate data.json files.
To reproduce:
The file from the second download is identical to that from the first download.
I put some tell-tales in the code and found that the problem is in plot.py here:
self.btn_download = pn.widgets.FileDownload(
filename='data.json',
button_type='primary',
callback=self.on_click_download)
The first "download data.json" click runs the
self.on_click_download
function, but a subsequent click does not run the function (even though a file is downloaded). Maybe there's a file buffer? I'm looking at documentation and haven't found an indication of what is going on (yet).