Documentation
Browser Python
Load Pyodide only on pages that need browser-side Python, then run code through Fyr's PyodideLoader.
Run Python
The Python bundle is optional. Loading it downloads the Pyodide runtime, so provide a visible loading state.
import { PyodideLoader } from "https://cdn.jsdelivr.net/npm/@aldane-dev-create/fyr@0.1.2/dist/fyr-python.esm.js";
const python = new PyodideLoader();
await python.load();
console.log(await python.run("2 ** 10"));Keep exploringSee framework examples →