Created
May 22, 2017 14:00
-
-
Save draperjames/90403fd013e332e4a14070aab3e3e7b0 to your computer and use it in GitHub Desktop.
Select files button for Jupyter notebook
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing!
Personally I like to do this little modification
L10:
def __init__(self, *args, do_on_select=None, **kwargs):
L21:
if do_on_select is not None: b.do = do_on_select
L39:
b.do(b)
This avoids writng another
button.on_click
and permits to raise an error insidedo_on_select
before turning the button to green.