Jupyter notebook: Python IDE for android
Tags: python, jupyternotebook
Published: 2020-01-16 11:21:44

---
title: Jupyter notebook: Python IDE for android
published: true
date: 2019-10-16 04:54:00 UTC
tags: python,jupyter notebook
canonical_url: https://altechnep.blogspot.com/2019/10/jupyter-notebook-python-ide-for-android.html
---

 **Termux**

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.

**<u>Interactive python Environment :</u>**

Jupyter notebook is one of the famous interactive python environment. It runs in your web browser in your localhost address.

**Requirements:**

**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 :_
```
$ python
```

_You will see \>\> appearing , which confirms our install. Now, press ctrl+d  which exit you from python. _

**Upgrading pip:**

_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 _

[![](https://lh3.googleusercontent.com/-LKi5IH2Z-Xc/XaaRvEw6GWI/AAAAAAAAViY/g2WG4iIWp4oWXmEGSTbGs17XtVHLDunqgCLcBGAsYHQ/s1600/1571197328585378-0.png)](https://lh3.googleusercontent.com/-LKi5IH2Z-Xc/XaaRvEw6GWI/AAAAAAAAViY/g2WG4iIWp4oWXmEGSTbGs17XtVHLDunqgCLcBGAsYHQ/s1600/1571197328585378-0.png)

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 :

[![](https://lh3.googleusercontent.com/-hQQNhRGKpHU/XaaRqjoo-VI/AAAAAAAAViU/izlJKAHjv30cq9r-gx1A-3FwreUWv6L3wCLcBGAsYHQ/s1600/1571197317590492-1.png)](https://lh3.googleusercontent.com/-hQQNhRGKpHU/XaaRqjoo-VI/AAAAAAAAViU/izlJKAHjv30cq9r-gx1A-3FwreUWv6L3wCLcBGAsYHQ/s1600/1571197317590492-1.png)

Now, to work on notebook, you can create a notebook and work on.

[![](https://lh3.googleusercontent.com/-ymYtK7TBL7k/XaaRnnwPeVI/AAAAAAAAViQ/meB4rhoCK2YzjGaN6cTyEuKGofIj2LuOgCLcBGAsYHQ/s1600/1571197298378798-2.png)](https://lh3.googleusercontent.com/-ymYtK7TBL7k/XaaRnnwPeVI/AAAAAAAAViQ/meB4rhoCK2YzjGaN6cTyEuKGofIj2LuOgCLcBGAsYHQ/s1600/1571197298378798-2.png)

  

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\__

  

 ![](https://feeds.feedburner.com/~r/blogspot/sTChm/~4/q5WAJc2LhVs)