PyScript Playground

Try PyScript Online

Below, you can find a PyScript REPL that lets you try PyScript online. Press Shift+Enter to evaluate a cell.


The button above has id "btn1" and the button below has id "btn2".


Use the buttons above (they do nothing yet!) and two empty divs (with ids "pre-repl" and "post-repl") to play with PyScript.

div_pre = Element("pre-repl") div_pre.write("Here is a div!")