Created
April 2, 2020 14:41
-
-
Save kervel/f7eafb4aa08b200f9298becb557bbf33 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def say_something(x): | |
""" | |
Print the current widget value in short sentence | |
""" | |
print(f'Widget says: {x}') | |
widgets.interact(say_something, x=[0, 1, 2, 3]) | |
widgets.interact(say_something, x=(0, 10, 1)) | |
widgets.interact(say_something, x=(0, 10, .5)) | |
_ = widgets.interact(say_something, x=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment