Manikandan Sathiyabal
4 min readJan 27, 2020

--

JUPYTER NOTEBOOK FOR ANDROID

Jupyter Notebook is an open source web application that are mostly used by python programmers. The notebook provides several features such as Sharing notebooks, Executing Shell commands and so on. These features are not limited to PC’s which means we can access jupyter Notebook from our mobile devices. Follow the steps to install jupyter notebook in your android device.

STEP 1: INSTALLING PYDROID3

  • Go to play store and search for Pydroid 3. This is an application which is used to execute python programs.
  • Install the application.

Once installed, open the application. The workspace will open like this. For you, the editor theme will be Light ( White background). To change the theme, click on the hamburger icon in the top-left corner , select Appearence -> Editor Theme and then select your preferred theme.

This application has lot of built-in python libraries including numpy, pandas, matplotlib and so on. Have a look on available python libraries.

To work with these libraries, you first need to install these libraries. To do that,

  • Click on the hamburger icon on the top-left corner
  • Select pip
  • Move to Search Libraries tab and search for the library you want to install.
  • Click on the install button to install that library.

NOTE:

If you are installing the library for the first time, pydroid prompts you to get pydroid repo plugin. Get the plugin installed in your mobile and you are good to go and play with those awesome python libraries.

STEP 2 : INSTALLING JUPYTER NOTEBOOK

Once the pydroid3 and pydroid repo is installed, the next obvious step is to install the Jupyter Notebook (100 mb). This can be done as same as how we installed python libraries.

  • Click on the hamburger icon on the top-corner and then select pip.
  • Now , in the search libraries tab search Jupyter.
  • Now click on the install button next to Jupyter.
  • This will install the Jupyter Notebook.

Alternate Method:

  • Click on the hamburger icon and go to pip.
  • Now go to Quick Install tab and scroll down till you see Jupyter library and click on install.

STEP 3 : OPENING JUPYTER NOTEBOOK

Once Jupyter is installed, we can open the Jupyter Notebook as follows,

  • Click on the hamburger icon on the top-left corner.
  • Select Terminal . This will open the terminal.
  • Type jupyter notebook and press enter from your keyboard.
  • Now, the Jupyter Notebook is launched with your default browser.

ADDITIONAL : INSTALLING PACKAGES IN JUPYTER NOTEBOOK

Though you have installed python libraries in pydroid, It will not reflect in Jupyter Notebook. That is Jupyter notebook is a seperate plugin. So, if you import python libraries like numpy, pandas it will throw “No Module Error”.

To install python packages in Jupyter notebook, open a new Jupyter notebook and type the code as follows,

import sys

!{sys.executable} -m pip install library_name

Also, you don’t need to execute this code every time . Execute this code for the first time installing python package. Next time, to use that package simply import the package by using command import library_name

UPGRADING PIP FROM JUPYTER NOTEBOOK

  • Open a new Jupyter Notebook and type in the following command.

pip install — upgrade pip

Here comes the conclusion of this post. The above steps are used in installing a Jupyter Notebook on your android device and also this way of installing Jupyter Notebook will provide all the PC’S Notebook features. Thank you for you time!!

--

--