Is there a way to set up python 2.7.x + matplotlib on an android tablet so that you can run simple standard python code? I would like to be able to run the same scripts I ru
I've read somewhere that scipy and matplotlib cannot be compiled for android, someone did it for numpy though
https://code.google.com/p/android-scripting/issues/detail?id=260
Upon searching numpy android
on Google, I found a very nice library. I guess it might be helpful.
There is an app called Gnuroot that allows you to run a kind-of chroot (proot), where you can install a linux distro such as debian, archlinux...
For the gui, there is the option to run a vncserver for an X server and use some android vnc client app to show the screen.
I use the non-gui version of gnuroot and it works well. I now have a command line debian wheezy on android lollipop arm. One minor thing i miss, is armhf (hardware floating point which my nexus7's processor can do) support instead of armel (software floating point).
Yes, it can be done, even without root. You need the termux
app, it basically is a terminal emulator with a full Linux environment and via apt install python
, for example, you can install python
.
The main webpage is here, and it is of course available via the standard market. (The termux wiki is a helpful place.)
There is a lot of incorrect information in this thread! I first tried Termux, using the information from this thread: How do I install Jupyter notebook on an Android device? but could not get Matplotlib downloaded for the life of me. The error messages suggested I needed to install wheel, which I did, but the install crash was only postponed. I am not saying it is not possible to install Matplotlib from Termux on a Galaxy Tab A, but I cannot do it. On the other hand, downloading Pyroid3 was straightforward, as was installing numpy, scipy and matplotlib. So that's my recommendation, based on success in doing so.
You can try MathSys. It's a wrapper around Python, and it has matplotlib inside.
Unfortunately, MathSys is rather convoluted, and it's an alpha version. Apparently, nobody is working on a beta version. You'll want to write any complicated code in an external file. import
works fine in MathSys.