Skip to content

Python Programming

Others:

Use Python in Web

More Info

This is done using vitepress-python-editor, which uses Pyodide to run your code and CodeMirror to display it.

Fun fact: this is running completely inside your browser securely without any extra servers, serverless functions or external workers! This also allows our website to stay static and not incur any (additional) cost.

If this feature is not working as expected, please report it to us on Github!

WARNING

This will not work if your browser is too old or does not support Web Assembly/Web Workers. If you're using a privacy focused browser like cromite, please enable JavaScript JIT and WebAssembly from the permissions menu.

If the Run Button doesn't show the run or loading button, try reloading your browser!

It will take some time to load, especially if your internet is slow.

Example Code:

python
print("Hello world")
Try it out
python
print("Hello world")