Voila+Preview shows error for user input codes

Voila shows the following error
‘There was an error when executing cell [1]. Please run Voilà with --show_tracebacks=True or --debug to see the error message, or configure VoilaConfiguration.show_tracebacks.’
for previewing user input codes.
and --debug shows the she following error message.

Voila only works with Jupyter interactive widgets.
input() is an old legacy thing from IPython and not really Jupyter, and so it won’t work in Voila.

See my recent mention of text collection more modern ways here.