API: Python (pure) (r1)

API Uses canvas Graphics libraries AB framework Worlds using this API Starter Worlds
Python (pure) (r1) No PyScript No 12 Worlds Starter Worlds


This API supports Python in the browser. The World is pure Python (no JavaScript).

For Worlds with JavaScript and Python mixed together, see the Python APIs.

This API works as follows:

Python 'print' and console.log are redefined:

For help on how to use Python in the Pyscript environment, see:

This API has further features:

Screenshots:

The underlying file type is .js:



Templates


Examples

Examples of Worlds that use this API:


Pure Python demo
22 runs ♦ 0 likes
By Starter user  
Created: 6 Oct 2025
Modified: 6 Oct 2025
Code is Python only (no JS). Demo world outputs to page.