Text Input Box

Example showing how to construct a text input widget that can be used to capture a string (such as a filepath).


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