Data Library Explorer Jupyter Widget #96
Open
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.
This PR adds a top-level folder,
jupyter
, containing the implementation of a basic Jupyter widget and an example notebook demonstrating usage. For authentication, this PR also changes server configuration to allow token authentication via request headers (for basic pythonrequests
) and via url parameters (foripyleaflet
layers).The Jupyter widget allows a user to specify credentials for a UVDAT session, then load a list of available Datasets. Each Dataset item in the list can be expanded to view available Layers for that Dataset. When a Layer item is selected, a map display will appear. If the Layer has multiple frames, a basic frame slider widget will appear as well. The map can display both raster and vector data, but no styling will be applied.
This widget is compatible with the server implementation in #94, allowing us to review data while the web interface is not yet updated. This Jupyter integration may also be useful for users in the future, so we may continue to add features to this widget.
The screenshot below shows the basic usage of the widget, including comments that demonstrate possible arguments to the constructor.
The following screenshot shows how the widget appears after the Dataset list has been loaded and a Layer has been selected: