Skip to content

Instantly share code, notes, and snippets.

@gatopeich
Last active March 29, 2024 22:10
Show Gist options
  • Star 33 You must be signed in to star a gist
  • Fork 19 You must be signed in to fork a gist
  • Save gatopeich/8debf57e4fd8188f2f6610c6f5b0cf55 to your computer and use it in GitHub Desktop.
Save gatopeich/8debf57e4fd8188f2f6610c6f5b0cf55 to your computer and use it in GitHub Desktop.
Install Jupyter iPython Notebook on Android via Termux
pkg upgrade
# Install runtime deps
pkg install python libzmq libcrypt
# Add build deps
pkg install python-dev libzmq-dev libcrypt-dev clang
pip3 install -U pip
pip3 install pyzmq --install-option="--zmq=/usr/lib"
pip3 install jupyter
# Remove build deps and pip cache
apt remove python-dev libzmq-dev libcrypt-dev clang
apt autoremove
rm .cache ../usr/var/cache -rf
#TODO: Clean up ~200 mb pulled by build...
@magic-moon
Copy link

pkg install python python libzmq libcrypt clang

@ivanivkovic
Copy link

pkg install python python libzmq libcrypt clang

Thanks, saved my ass with the update.

@gatopeich
Copy link
Author

gatopeich commented Dec 20, 2019

Do you mean these dependencies are needed now instead of the ones I posted, or in addition?

I am guessing they go before the "autoremove", so they don't get wiped out...

@ivanivkovic
Copy link

I think so because the first thing didn't work for me, magic-moon's advice did.

@Marshallmaxiao
Copy link

pkg install python python libzmq libcrypt clang

Thanks it saved my ass too. I didn't remove or uninstall anything. Seems like the libzmq was missing.

@gatopeich
Copy link
Author

Thaks all, I have updated to clarify how to clean up just what is not needed.

@Susmigo
Copy link

Susmigo commented Aug 2, 2020

@gatopeich
Copy link
Author

Check here https://github.com/Susmigo/jupyter_Notebook_android

No hint of cleaning unneeded stuff there. How many hundreds of MB does it take?

@luanon404
Copy link

luanon404 commented Oct 28, 2020

after use your code i cant use pkg 🤔
find: ‘/data/data/com.termux/files/usr/var/cache/apt/pkgcache.bin’: No such file or directory

@godsworkers
Copy link

godsworkers commented Nov 27, 2020

after use your code i cant use pkg 🤔
find: ‘/data/data/com.termux/files/usr/var/cache/apt/pkgcache.bin’: No such file or directory

apt update && apt upgrade -y
#(after doing this it worked )

@godsworkers
Copy link

godsworkers commented Nov 27, 2020

#Choose your directory in to save sessions in..
pwd
ls

type this next command to start.

jupyter notebook

@luanon404
Copy link

#Choose your directory in to save sessions in..
Pwd
Ls

type this next command to start.

jupyter notebook

can i use pyqt5 on termux?

@godsworkers
Copy link

#Choose your directory in to save sessions in..
Pwd
Ls

type this next command to start.

jupyter notebook

can i use pyqt5 on termux?

https://pypi.org/search/?q=pyqt5

@abdulazizalmass
Copy link

Thanks a lot for the code. It worked. However, I am not able to access the storage folder. Any tips on that?

@subhamsdalmia
Copy link

pkg install libxml2 libxslt libiconv

might be required

@dchap27
Copy link

dchap27 commented Jan 26, 2023

Thanks a lot for the code. It worked. However, I am not able to access the storage folder. Any tips on that?

@abdulazizalmass use the command termux-setup-storage

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