# 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:** 1\
**Showing post:** 2

<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).

---

_[View the full topic](https://discourse.jupyter.org/t/voila-preview-shows-error-for-user-input-codes/38207)._
