Skip to content

Instantly share code, notes, and snippets.

@volkbay
Last active May 19, 2025 22:27
Show Gist options
  • Save volkbay/46150e9601d3411886c687fc575a4a1b to your computer and use it in GitHub Desktop.
Save volkbay/46150e9601d3411886c687fc575a4a1b to your computer and use it in GitHub Desktop.
Install Jupyter Lab on Termux

🧰 Setup

  • Termux: 0.118
  • Android: 11
  • Device: Xiaomi Pad5
  • JupyterLab: 3.6.2

🪜 Installation

It is pretty straightforward to install Jupyter Notebook(classic, notebook version<7). In Jupyter Lab case, usually 'maturin' package is problematic to build. Please follow the steps below:

pkg update
pkg install clang python python-pip libzmq binutils

pip3 install pyzmq --install-option="--zmq=/usr/lib"
pip3 install setuptools_rust # setuptools should be sufficient, otherwise try again after `pkg install rust`
pip3 install jupyterlab

Check installation with jupyter --version on Termux terminal.

🐎 Running

  1. Run jupyter-notebook (classic) or jupyter-lab (lab).
  2. Prompted browser selection won't work in my setup.
  3. Instead hit Ctrl+Alt+M (open more menu) > Select URL > Press & hold 127.0.0... or localhost:8888...
  4. Alternatively, open another Termux terminal by Ctrl+Alt+C > jupyter server list > Copy given URL only > Enter your favorite browser and paste

@w311ang
Copy link

w311ang commented Jun 10, 2024

use --config-settings instead of --install-option

@yishamin
Copy link

yishamin commented Jul 1, 2024

there is no version that satisfies the requirment

@vdsukhov
Copy link

I tried the approach mentioned in the gist, but unfortunately it didn’t work for me. Instead, here’s what I used to resolve the issues I had on September 19, 2024:

pkg update && pkg upgrade -y
pkg install -y build-essential libzmq rust python

pip install jupyter

pkg install -y patchelf
patchelf --add-needed libpython3.11.so $PREFIX/lib/python3.11/site-packages/zmq/backend/cython/_zmq.cpython-311.so

jupyter-lab .

@jderry
Copy link

jderry commented May 19, 2025

putting together @volkbay's instructions with @vdsukhov's let me finally run jupyter notebook on my pixel tablet via termux.
thanks, guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment