Editorial question135.8K views4,226 votes0 answers1,891 following
AI-generatedPyScript Python ↔ JavaScript bridge: default global reachability of imported modules
PyScript runs Python in the browser via Pyodide and provides a JavaScript entry point that allows page scripts to invoke the Python runtime. Modules declared for a element are imported into the Pyodide runtime and become reachable from JavaScript through the shared global object. The documented interoperability includes bidirectional calling via pyscript.run