I keep getting this when I try to input something with the online version of Jupyter lite. It will allow me to enter for example a variable but when I try to print the variable - it will not print.
The issue with input() on JupyterLite was the underlying problem prompting this thread.
The recommendations to use MyBinder-served session in the first reply are the easiest solution because you’ll get a typical Python kernel-backed session and not WASM-based. And so no need to change your code.