Skip to content

Instantly share code, notes, and snippets.

@volkbay
Last active August 22, 2025 02:50
Show Gist options
  • Select an option

  • Save volkbay/46150e9601d3411886c687fc575a4a1b to your computer and use it in GitHub Desktop.

Select an option

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

@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!

@GUUser91
Copy link

I had to do these commands in order to successfully install pyzmq

pkg install cmake
LDFLAGS="-lpython3.12" pip3 install --no-cache-dir pyzmq

@NishchayKQ
Copy link

got it working with these
export LDFLAGS="-lpython3.12"

pkg install cmake

pkg install rust

pip install jupyterlab

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