This seems like it should be a standard function but I’m at a loss…
I have an app that generates data, and I want to give the user the option to save the data to a file. The FileInput widget has the basic functionality that I’d like – pops up a directory, lets the user change directory and select a file – except it enforces choosing an existing file rather than providing a new name.
Is there a simple way to do this? I looked at the FileSelector widget but it’s way too fancy for this function and also wants to enforce chosing files rather than creating a new one.
Example code:
import panel as pn
file_input = pn.widgets.FileInput()
pn.Row(file_input).servable()
Does this and pops up a Windows file selector when clicked:
Thanks, no, that downloads a file. I’m looking for something where you can choose a directory and save data to a new file, like many applications. Example: