Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File browser widget #430

Closed
kcpevey opened this issue May 13, 2019 · 7 comments
Closed

File browser widget #430

kcpevey opened this issue May 13, 2019 · 7 comments
Labels
sprintable type: enhancement Minor feature or improvement to an existing feature
Milestone

Comments

@kcpevey
Copy link
Contributor

kcpevey commented May 13, 2019

The FileInput widget will automatically load a file into memory when a file is selected. However, sometimes there is a need to select one (or more files), do some other things, then trigger a load for all the files at once with the load being something I code on my end. Basically, I need a simple file browser that allows users to navigate to local files and store filepaths as strings. It seems like the FileInput has much of that functionality, but I don't want it to automatically load the files and I'd like the ability to set a default. And in reality, it would be nice as a param widget so I can use param.depends on it instead of a workaround.

Is there any way to get this functionality out of the existing widgets?

@philippjfr
Copy link
Member

This has been requested a few times and the intake GUI already has some component like this, so it's just a matter of someone writing a panel version. You could probably build something from existing widgets but it may not be worth it.

@jbednar
Copy link
Member

jbednar commented May 13, 2019

Doesn't param.Filename already work this way?

@kcpevey
Copy link
Contributor Author

kcpevey commented May 13, 2019

@jbednar The param.Filename is just a string textbox with no browser functionality. It checks for validity but doesn't allow users to navigate to a local file.

image

@kcpevey
Copy link
Contributor Author

kcpevey commented May 13, 2019

I'll check out the intake gui

@jbednar
Copy link
Member

jbednar commented May 13, 2019

Ok, sounds like the Param support is there already, but the corresponding mapping to a usable widget is missing from Panel. I think there were already widgets for Filename in ParamTk and/or ParamNB, but I may be misremembering.

@philippjfr philippjfr added the type: enhancement Minor feature or improvement to an existing feature label Jul 25, 2019
@joelostblom
Copy link
Contributor

In addition to being able to choose one or many files, it would be great to be able to choose one or many folders and return their names. This would be useful when searching recursively within multiple subfolders, which cannot be achieved via file multiselection.

Being able to filter on file extensions to only display certain file types when browsing could also be useful.

@joelostblom
Copy link
Contributor

I just noticed that the ability to return the filename has been implemented in the Bokeh version of the FileInput widget bokeh/bokeh#9100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sprintable type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

4 participants