Art of Problem Solving

Python on Mobile Devices and Chromebooks


Warning: Methods on this page are not the easiest method, and sometimes things can go wrong. Do not trust these instructions with life or death requirements.

It's possible - and sometimes painful - to program in Python on these devices.


Python running websites

To run and develop Python in a web browser: I personally recommend: Github Codespaces: note that it has a limited hour tier so you should turn on the setting to turn off the Codespaces after a short period of inactivity. You may also use the limited AoPS Python runner. [pywindow] print("test") [/pywindow] This is done with [code] [pywindow] print("test") [/pywindow] [/code]

Additional:

Github Codespaces, Replit

Pyscript.net Self host webVSC thingy, I forgot what it's called


Python on Chromebooks

There are several methods to run python code on a Chromebook. Chromebooks run on ChromeOS, which is a modified version of Android, which in turn is based on Linux. Chromebooks are often favored by schools because they are lower cost, and are controllable via MDMs or management software.

Running Python in a Linux VM/Crostini

Most Chromebooks manufactured after 2019 support running Linux in a VM. See here on what Linux in a Chromebook/Crostini is, and how to enable it: https://support.google.com/chromebook/answer/9145439?hl=en After enabling it, boot it up, and install Linux. You *should* be able to simply type in [debian apt-get commands] to install Python and IDLE. UNTESTED

Running Python in Termux

Python on Android devices

Termux/LinuxVMs

Python on iOS devices

UTM? Why not? Jailbreak

This article is a stub. Help us out by expanding it.