Termux is the best linux terminal environment app. It provides a terminal environment with mutiple sessions provision and comes handy to apply almost very linux deployment.
Interactive python Environment :
Jupyter notebook is one of the famous interactive python environment. It runs in your web browser in your localhost address.
1. Install termux app (can be installed from android playstore or Fdroid )
2. Any web browser (if already present like chrome, firefox then not needed )
Process to install:
Goto termux and open it, if its your first time installing termux the it may take few seconds to install its dependencies.
Now type in the termux terminal:
$ apt update
$ apt upgrade
These commands updates all necessary dependencies of the termux with latest updates.
Now we need to install python, for this type in terminal :
$ pkg install python
This installs python 3 package to your termux. The python package comes with all basic modules and pip too. For checking if the python is installed correctly type in terminal :
_You will see >> appearing , which confirms our install. Now, press ctrl+d which exit you from python. _
let's upgrade our pip to latest version , for this type:
$ pip install --upgrade pip
Installing Dependencies from pip:
Finally we can now proceed to install jupyter notebook by pip but first we need to download clang (converts our program into object, for machine execution) , fftw and others. Now, type in terminal:
$ apt install clang python fftw libzmq freetype libpng pkg-config
Installing Jupyter notebook:
_Type this in the terminal to download jupyter notebook. _
$ LDFLAGS=" -lm -lcompiler\_rt" pip install jupyter
After, jupyter is installed, type in terminal:
$ jupyter notebook
_It shows something like this _
The output in terminal clearly shows to access the notebook we can open by coping any of those 3 lines , you can go copy http://localhost one and paste it in your browser and something like this will be seen :
Now, to work on notebook, you can create a notebook and work on.
Back in terminal press ctrl+c to quit the notebook.
You can further install your required packages such as numpy, matplotlib and pandas too.
For this type in terminal:
$ LDFLAGS=" -lm -lcompiler\_rt" pip install numpy matplotlib pandas
There you go, with jupyter notebook. If you want other packages you can easily install with pip.
Happy hacking. _x_