Skip to content

Instantly share code, notes, and snippets.

@vdsukhov
Created September 19, 2024 15:15
Show Gist options
  • Select an option

  • Save vdsukhov/f6765639ab80c6bb4b5cb94c6130f95f to your computer and use it in GitHub Desktop.

Select an option

Save vdsukhov/f6765639ab80c6bb4b5cb94c6130f95f to your computer and use it in GitHub Desktop.
Jupyter Lab Notebook installation in a Termux | Jupyter Lab Notebook installation on an Android Phone/Tablet

Installing JupyterLab in Termux

Introduction ๐Ÿ‘‹

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

Installation Steps โš™๏ธ

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.so

Running JupyterLab ๐Ÿš€

You 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.

Warning โš ๏ธ

Please note that the installation process may vary in future releases of Termux or JupyterLab.

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