News

In addition to executing code embedded in HTML, it's also possible to add a code editor directly into an HTML page using the py-repl tag so that you can input code and execute it, as shown below.
Python code is enclosed in the script tag with a type="py" attribute. Note that the code should be formatted according to Python’s conventions for indentation, or it won’t run properly.