api / interfaces / PythonRuntimeOptions
Interface: PythonRuntimeOptions
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
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? | readonly | readonly string[] | Pyodide package names to load before each browser Python process runs. Use this for Pyodide-shipped packages such as numpy or matplotlib. |
pyodideIndexUrl? | readonly | string | URL | Custom Pyodide distribution URL. Hosted projects normally use the runtime default. |