Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing python code on android [closed]

Tags:

python

android

I recently got a android tablet (nexus 7) and would like to be able to write python programs on it (not for it) without access to the internet or needing to access any other device to run the program. If somebody could suggest an app, or tell me how to set it up, it would be great. If however, someone could suggest an app that works with a different language, that would also be nice.

like image 337
Kelson448 Avatar asked Feb 25 '13 23:02

Kelson448


People also ask

Is Python coding possible on android?

Python can run on Android through various apps from the play store library. This tutorial will explain how to run python on Android using Pydroid 3 – IDE for Python 3 application. Features : Offline Python 3.7 interpreter: no Internet is required to run Python programs.

Where I can write Python code in android?

There is an app called QPython3 in playstore which can be used for both editing and running python script. If you want develop apps , there is Python Android Scripting Layer (SL4A) .

How do I open a .PY file on android?

py file! Enter some code here, then go to: Run > Run Module. You'll be prompted to save your file as a module (a compact piece of Python code that can be run from other scripts) and from there, your app will run! That is how to run Python files.


3 Answers

If you want to be able to run a Python interpreter on the device, use SL4A.

http://www.github.com/damonkohler/sl4a

The best editor I've used is DroidEdit. I actually forked out the $2 for the pro version.

https://play.google.com/store/apps/details?id=com.aor.droidedit.pro&hl=en

like image 58
pyrospade Avatar answered Oct 25 '22 04:10

pyrospade


The best offline IDE I ever use is Pydroid. I love it's feature to easy share on Pastebin.

like image 22
Jayesh Avatar answered Oct 25 '22 05:10

Jayesh


If you are comfortable doing Python development/testing on the command line, you could follow these instructions to get Python running in Terminal IDE

like image 31
ianhanniballake Avatar answered Oct 25 '22 05:10

ianhanniballake