├── img ├── README.md ├── chrome.jpeg └── jupyter.jpeg └── README.md /img/README.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /img/chrome.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/restrepo/pydroid_with_termux/HEAD/img/chrome.jpeg -------------------------------------------------------------------------------- /img/jupyter.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/restrepo/pydroid_with_termux/HEAD/img/jupyter.jpeg -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JupyterLab in Pydroid 3 with Termux (and Hacker's Keyboard) 2 | See also: https://github.com/restrepo/termux-tips 3 | ## Pydroid 3 4 | "Pydroid 3" is a Python IDE for android, it includes `pip` and therefore the possibility to install Jupyter or JupyterLab. 5 | 6 | * Install "Pydroid 3 - IDE for Python 3" from Google Play in your phone 7 | * Open "Pydroid 3". From the application menu choose "PIP". 8 | * Choose "QUICK INSTALL" and search and install `jupyter` (the old notebook interface), and maybe `matplotlib`, `numpy`, `pandas` and `scipy`, etc. 9 | * To check the installation, from the application menu choose "Terminal" and in the terminal prompt, type 10 | ```bash 11 | jupyter-notebook 12 | ``` 13 | > which would open the JupyterLab interface in the browser. It opens a light interface more well suited for cellphone screens (Each cell includes an execution button) 14 | * Optionaly you could install instead the `jupyterlab`: Choose PIP → INSTALL and type `jupyterlab`. See [here](https://stackoverflow.com/a/51581309/2268280) for details. In the terminal prompt, type: `jupyter-lab`, which would open the JupyterLab interface in the browser as shown in the image before the [last section](https://github.com/restrepo/pydroid_with_termux/blob/main/README.md#hackers-keyboard). 15 | * In both cases you can close the aplication from the "Terminal" by using the `+c` key shortcut (see [last section](https://github.com/restrepo/pydroid_with_termux/blob/main/README.md#hackers-keyboard) to install a shortcuts-enabled keyboard ) 16 | 17 | ## Termux 18 | * Install Termux from Google Play in your phone. Open the application, then in the terminal prompt, type 19 | ```bash 20 | termux-setup-storage 21 | ``` 22 | and in the emergent popup allows "Termux to access photos, media, and files on your device". 23 | In particular, this would allow for read/write permissions in the `/storage/emulated/0` directory to be shared with "Pydroid 3". 24 | 25 | * Install `git` with 26 | ```bash 27 | apt update 28 | apt install git 29 | ``` 30 | * Go to "Pydroid 3" directory and creates a working directory, e.g, `prog` 31 | ```bash 32 | cd /storage/emulated/0 33 | mkdir prog 34 | cd prog 35 | ``` 36 | 37 | * In this working directory, download some GitHub repository which includes some Jupyter notebooks 38 | ```bash 39 | git clone https://github.com/restrepo/ComputationalMethods.git 40 | ``` 41 | * From the Jupyter or JupyterLab interface in the browser, open some notebook... 42 | ![img](https://github.com/restrepo/pydroid_with_termux/raw/main/img/jupyter.jpeg) 43 | 44 | ## Hacker's Keyboard 45 | It is recommended to have a better keyboard for easier programming editing: 46 | * Install "Hacker's Keyboard" from Google Play in your phone 47 | * Go to the "Manage keyboards" settings and activate "Hacker's Keyboard": Settings → System → "Languages & Input" → "Virtual keyboard" → "Manage keyboards". 48 | * From the Gboard keep the space bar pressed until the dialog to switch keyboards appears, and then change to "Hacker's Keyboard". Hit the configuration key situed on the right of microphone key (Or choose the "Hacker's Keyboard" icon a choose SETTINGS) 49 | * Select "Keyboard mode, portrait" and switch to the 5-row compact layout 50 | 51 | --------------------------------------------------------------------------------