Skip to main content

How to Run Python / IDLE on Android


Install IDLE from Google Play. It runs Python's own IDLE editor and interactive shell on Android, so you can write, run and debug real Python scripts on your phone or tablet.

How to do it

  1. Install the app from Google Play. Search Google Play for IDLE by UserLAnd Technologies. It is a one-time purchase.
  2. Open it and let it set up. The first launch downloads and sets up the Linux files the app needs. Stay on Wi-Fi; this only happens once.
  3. Write some Python. IDLE's shell opens. Type print("Hello from Android"), or use File → New File to write a script and press F5 to run it.
  4. Use touch as a mouse. Tap with one finger to click, two-finger tap to right-click, pinch to zoom, slide two fingers to scroll, and hold and slide to pan. Tap the screen and choose the keyboard icon to type.

What you get

  • A Python shell with colorized input, output and errors
  • A multi-window editor with undo, smart indent, call tips and autocompletion
  • Search and replace in any window, plus grep across files
  • A debugger with persistent breakpoints, stepping and namespace views

What you need

  • An Android phone or tablet with Google Play
  • Free storage for the Linux files (a tablet or a phone with a large screen is most comfortable)
  • Internet for the first-time setup
  • Optional: a Bluetooth or USB keyboard and mouse

Prefer free?

UserLAnd is free, and you can install Python IDLE in it yourself: in UserLAnd, set up Debian, choose Graphical, open a terminal and run sudo apt install idle. IDLE does all of that for you in one tap, and buying it supports UserLAnd development.

This app adapts the Linux desktop edition of Python IDLE for Android. It is not made by the Python Software Foundation.

Get IDLE on Google Play ($1.99) · Full guide and FAQ on userland.tech

Comments

Popular posts from this blog

What is UserLAnd?

UserLAnd is the easiest way to run Linux on Android.  It is distributed through the Play Store.  It does not require you to root your device.  It is simple to use and powerful.

The Internet Archive is Coming Back Online and So are our Gaming Apps

  About 1 month ago UserLAnd Technologies' apps which allow you to play retro games on Android stopped working.  The reason for this is that these apps act as a sort of browser extension for what the Internet Archive  has archived.  The apps provide a way to meaningfully use these games on Android, but we don't host the games ourselves.  This generally works well but the Internet Archive suffered multiple attacks (DDoS, databases hacked and website defaced) at the beginning of October.  The end result was that all of their services went offline.  The team at the Internet Archive prioritized getting the Wayback Machine and other services working before they restored their collection of games.  The good news is that the games (and other sw) are now back online.  Their blog has a summary of what is working currently.  I am guessing we will see some slowness and some random outages as they continue to restore and improve their services, bu...

Our Different Plans for Thunderbird on Android

  Revealed: Our Different Plans for Thunderbird on Android A little while ago, it was announced that Thunderbird was, sort of, coming to Android . When we saw that announcement, the UserLAnd Technologies team thought "Why don't we bring it to Android for real?".  So we have and it is now on the Play Store . This is the first release of the actual desktop version of Thunderbird for Android. It has some bumps currently, for example there is a awkward pause before Thunderbird is displayed, but we will improve BirdBox over time and we don't see any issues that cannot be solved in future releases. We are charging for this app to help fund our open source work, but you can run Thunderbird in our free app, UserLAnd , if desired. BirdBox will allow us to create a more convenient and tailored experience for Thunderbird users. Any improvements developed while working on BirdBox will find their way back into UserLAnd. Lastly, I have some promo codes if desired.  Email us at sup...