How does PyScript use Python code in HTML behind the sense? Does it translate it to JS?
The python code is not translated, we are running with a webassembly build of cpython. the python code is run in a python interpreter that is itself running in the browser WASM.
we are using https://pyodide.org/