In [ ]:
import ipywidgets
import IPython.display
Construct widget with a default value and display using IPython display call.
In [ ]:
args = ipywidgets.Text(
description='Input string:',
value='cube')
IPython.display.display(args)
Print widget value for clarity.
In [ ]:
print args.value