We can see an example of a collision with a Notebook that allows for data entry from a user and responds with incorrect results:
- I call upon an example that I have used elsewhere for illustration. For this example, we will use a simple Notebook that asks the user for some information and changes the display to use that information:
from ipywidgets import interactdef myfunction(x): return xinteract(myfunction, x= "Hello World ");
- The script presents a textbox to the user, with the original value of the box containing the Hello World string.
- As the user interacts with the input field and changes the value, the value of the variable x in the script changes accordingly and is displayed on screen. ...