Skip to content

Instantly share code, notes, and snippets.

@volkbay
Last active July 6, 2024 14:33
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

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