Skip to content

Instantly share code, notes, and snippets.

@kervel
Created April 2, 2020 14:43
Show Gist options
  • Save kervel/f6dd802c9b5b4b6c8e2caa93f9ee1051 to your computer and use it in GitHub Desktop.
Save kervel/f6dd802c9b5b4b6c8e2caa93f9ee1051 to your computer and use it in GitHub Desktop.
@widgets.interact(x=(0, 10, 1))
def foo(x):
"""
Print the current widget value in short sentence
"""
print(f'Slider says: {x}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment