I want to create an interactive Jupyter notebook. I'd like to have a Textarea, where if I enter some text, a function gets run on the text I entered. I'm trying:
text = widgets.Textarea(
value='last',
placeholder='Paste ticket description here!',
description='String:',
disabled=False
)
display(text)
text.on_displayed(show_matches(text.value))
Then I want to perform some magic with show_matches and display a pandas dataframe (diplay(df)). However, this only runs if I explicitly run the cell and then again only with the predefined last string. I want it to run whenever I finish writing in the text area, with the text I wrote. How can I do this (eg.: How can I bind the value of the Textarea to a Python variable and run a function whenever the value changes)?