fyr.jsPreparing the runtime
← All examples

Example

Browser Python

Run small Python programs in the browser through PyodideLoader.

Lazy runtimePython codePackage loading

Browser Python

This guided example is represented in the site source and linked from the framework repository.
const python = new PyodideLoader();
await python.load();
const result = await python.run("sum([1, 2, 3])");