Welcome to Svelte+Pyodide
Enter python code in the text area below and press the
pyodide. The contents of
the variable result
is returned to the website and displayed
once it's finished.
Details
The script is computed in a separate thread using Web Workers.
This means that heavy computations are done in the background and
the website gets notified once the result is available.
We use two strategies for updates:
svelte's dynamic attributes and
promises + await-blocks.
You can start
multiple scripts and they will be computed one after the other. The
number of pending jobs is displayed below (Number of waiting scripts). Set
the sleep function in the python script to try this effect (time is measured in seconds).
Visit kit.svelte.dev to read the documentation