Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from IPython.display import display, clear_output
- # Creating and Displaying button
- button = widgets.Button(description="Button Text!")
- display(button)
- # Callback function with button parameter
- def clicked(b):
- clear_output()
- print("Result of button click: ")
- # Defining callback function
- button.on_click(clicked)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement