This guide outlines the installation process for JupyterLab in Termux.
- Termux Version: 0.118.1 (APK file from the GitHub Termux repository)
- Android Version: 14
- Device: Pixel 6
- Python Version: 3.11
Follow these commands to install JupyterLab in a fresh Termux environment:
pkg update && pkg upgrade -y
pkg install -y build-essential libzmq rust python
pip install jupyter
# specific for Python 3.11
pkg install -y patchelf
patchelf --add-needed libpython3.11.so $PREFIX/lib/python3.11/site-packages/zmq/backend/cython/_zmq.cpython-311.soYou can run JupyterLab or Jupyter Notebook using the following commands:
-
JupyterLab (the modern solution):
jupyter-lab
-
Jupyter Notebook:
jupyter-notebook
Once Jupyter is running, copy the full URL that starts with http://127.0.0.1:8888/... or http://localhost:8888/... and paste it into your favorite web browser to start using Jupyter.
Please note that the installation process may vary in future releases of Termux or JupyterLab.