Skip to content

Instantly share code, notes, and snippets.

@kervel
Created April 2, 2020 14:41
Show Gist options
  • Save kervel/ee81b728afa48a86fcd75a9e9e31309c to your computer and use it in GitHub Desktop.
Save kervel/ee81b728afa48a86fcd75a9e9e31309c to your computer and use it in GitHub Desktop.
def say_my_name(name):
"""
Print the current widget value in short sentence
"""
print(f'My name is {name}')
widgets.interact(say_my_name, name=["Jim", "Emma", "Bond"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment