from ipywidgets import interact
def reverse (text): print(f'response: {text[::-1]}')
interact(reverse, text='');