Revision of PR #1376 implementing the Solara FileBrowser #2467
+135
−445
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In #1376 @maartenbreddels demo'ed the Solara file browser for jdaviz. The implementation in that PR is hard to test for two reasons:
FileChooser
object, but did not fully implement a solution for all of our uses ofFileChooser
(note: this PR doesn't solve this problem)This PR gets the file browser working well enough to demonstrate @maartenbreddels's intended use case – replacing the backend on the
IMPORT DATA
button – but does not fully implement all of theFrom file...
buttons in plugins.This PR adds a simple/silly file validation step. The file browser will show directories in addition to files, and will only show files that are possible to load. For the purposes of this demo PR, I didn't create an exhaustive list of valid file extensions. We should ultimately connect this validation to the
get_valid_format
method to show the files compatible with this helper.