Add configurable progress and session info indicators#751
Add configurable progress and session info indicators#751amitschang wants to merge 4 commits intojupyter-incubator:masterfrom
Conversation
Configuration options are added to allow override of the spark statement progress indicator and for the html table of session info upon startup. Both come with defaults that implement the same function as was done prior to this change, so there would be no impact in case options are not set.
devstein
left a comment
There was a problem hiding this comment.
Thanks for contributing and the helpful PR description @amitschang! I'll try to review this week.
devstein
left a comment
There was a problem hiding this comment.
Overall looks good. Just need to fix some issue around naming and class design
|
@amitschang Merge conflicts from #758 an easy way to fix is git remote add upstream git://github.com/jupyter-incubator/sparkmagic.git
git fetch upstream
# choose local changes over remotes
git merge upstream/master -X ours
# run black on all files
black . |
|
Thanks @devstein! I will carve out some time to work on requested changes probably early next week, cheers :) |
|
@devstein, I've addressed all your comments I believe. Please let me know what you think. I've also merged in the lastest upstream and ran black. There are still a small number of whitespace fixes left from my changes, for non-py files - I hope they are OK left in. The tests were added to the configuration tests since they have to to with default configuration and check whether the defaults are subclasses of the appropriate indicator classes (even though otherwise there is no attempt at enforcing this - which I think is probably OK). |
|
a bit of a bump on this. Still something you think could be included? |
Description
Configuration options are added to allow override of the spark statement progress indicator and for the html table of
session info upon startup. Both come with defaults that implement the same function as was done prior to this change, so
there would be no impact in case options are not set.
In my use-case, I wanted to create a indicator that sits at the top of the page and includes a link to the UI, and thus can be seen no matter where in the page your are focused. I think there are many other potential uses, such as users wanting to do simpler things like setting the width of the widget, or choosing a different widget for progress, etc.
Testing: Manually tested with notebook both without the new options and confirming the existing behavior and with overridden classes to customize both progress and startup display. Existing unit tests pass
Note: my editor is set to be opinionated about trailing white-space, so the PR includes some white-space fixes. I can certainly prune those out if it is not desired to include unrelated cleanup. Otherwise, the diff can be viewed with white-space hidden.
Checklist
CHANGELOG.mdfileREADME.mdfile