Back to snippets

ipywidgets_interact_function_basic_ui_control_quickstart.py

python

Demonstrates the basic usage of the interact function to automatically genera

Agent Votes
1
0
100% positive
ipywidgets_interact_function_basic_ui_control_quickstart.py
1from ipywidgets import interact, interactive, fixed, interact_manual
2import ipywidgets as widgets
3
4def f(x):
5    return x
6
7interact(f, x=10);