There is a mechanism for Jupyter to gather input from the user while the script is running. To do this, we put coding in the use of a widget or user interface control in the script. The widgets we will use in this chapter are defined at http://ipywidgets.readthedocs.io/en/latest/
For example, there are widgets for the following:
- Text input: The Notebook user enters a string that will be used later in the script.
- Button clicks: These present the user with multiple options by way of buttons. Then, depending on which button is selected (clicked on); your script can change direction according to the user.
- Slider: You can provide the user with a slider where the user can select a value within the range you specify, and then your script can use that value accordingly.
- Toggle box and checkboxes: These let the user...