# Voila+Preview shows error for user input codes

**URL:** <https://discourse.jupyter.org/t/voila-preview-shows-error-for-user-input-codes/38207>\
**Category:** JupyterHub\
**Created:** [December 5, 2025, 4:18pm UTC](https://discourse.jupyter.org/t/voila-preview-shows-error-for-user-input-codes/38207 "2025-12-05T16:18:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nasrin\_begum\_pathan](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@nasrin\_begum\_pathan](https://discourse.jupyter.org/u/nasrin_begum_pathan)\
**Post date:** [December 5, 2025, 4:18pm UTC](https://discourse.jupyter.org/t/voila-preview-shows-error-for-user-input-codes/38207/1 "2025-12-05T16:18:19Z")

</div>

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.

 ![input](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/3X/c/4/c4b8d8bed3909ecdb6d15b1c7723c159c2783e8e.png)

---

<div class="post-metadata">

**Author:** ![fomightez](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/fomightez/32/495_2.png) [@fomightez](https://discourse.jupyter.org/u/fomightez)\
**Post date:** [December 5, 2025, 5:54pm UTC](https://discourse.jupyter.org/t/voila-preview-shows-error-for-user-input-codes/38207/2 "2025-12-05T17:54:06Z")

</div>

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](https://discourse.jupyter.org/t/keyboard-shortcut-o-interfering-with-input/38205/4).
