Experiments with Running python in the browser

python
Published

May 22, 2023

My goal is an in browser python editor I can embed into a blog.

Code is ran client side, so don’t try to crash any server or anything like that.

Awww, the input function doesn’t seem to work.

Shift + enter/return to evaluate code of the below.

This kinda works, but also has issues. Input fucntion still doesn’t work.

Shift + enter/return to evaluate below. Or double click.

import numpy as np np.random.rand(5)

This is cool, but the code isn’t editable. It just resets itself for some reason.

Maybe this will work?

Open the project Untitled Project in LiveCodes


yeet = input("test")

print(yeet)