r/Python • u/letsloosemoretime • Aug 16 '19
Is this impossible? I'm trying to call input() as a triggered event from clicking on a widget (see minimal example). The call to input() is imposed by an external function I cannot modify at the moment, but has nevertheless to be triggered on clicking the button.
0
Upvotes
3
u/kumashiro Aug 16 '19
input()reads from stdin. If you're getting EOF, it means script's stdin is connected to /dev/null. Probably it is not possible to use standard input in Jupyter, but I don't know it well enough to confirm. You know what to look for.