Interface: PythonRuntimeOptions

Properties

PropertyModifierTypeDescription
backend?readonly"browser" | "auto" | "server"Python backend selection. - browser runs supported Python through Pyodide. - server runs Python on the managed server runtime. - auto runs Pyodide first and promotes unsupported workloads when fallback is enabled.
fallback?readonly"auto" | "manual"auto promotes unsupported browser Python workloads to the server backend. manual reports the browser failure without promotion.
preloadPackages?readonlyreadonly string[]Pyodide package names to load before each browser Python process runs. Use this for Pyodide-shipped packages such as numpy or matplotlib.
pyodideIndexUrl?readonlystring | URLCustom Pyodide distribution URL. Hosted projects normally use the runtime default.