Does PyScript translate Python code to JS when running on the browser?

How does PyScript use Python code in HTML behind the sense? Does it translate it to JS?

Hi :slight_smile:

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/

2 Likes