Create something like input() with panel

I would like to create something like a python input element using panel. Meaning interrupting the code execution until the user enters something in a pn.widgets.TextInput and then continue using the inserted text.

Is something like this possible?