API reference#

  • JavaScript API: running Python from JavaScript (runPython, runPythonAsync, pyimport, globals, toPy, PyProxy)

  • Python API: using JavaScript from Python (pyjs.js, proxies, conversion, run_js, promises and run_sync, the asyncio event loop, errors)