Based on this guide with a few updates: https://github.com/Susmigo/jupyter_Notebook_android

# credit https://github.com/Susmigo/jupyter_Notebook_android  
  
  
cd ~/  
pkg update  
pkg install proot  
termux-chroot  
apt install git clang  
apt install python3  
apt install libclang   
apt install libzmq  
  
# updated Oct 2021  
apt install julia-llvm libllvm  
  
# ipython is an enhanced Interactive Python. It is sort of zsh shell vs ordinary shell  
  
pip3 install ipython  
pip3 install jupyter  
  
# run   
jupyter-notebook  
  
# Press (twice) Ctrl + c to shutdown  

Can set password

# set password  
  
jupyter-notebook password  
  
# your password will be hashed in jupyter_notebook_config.json  

If you remove the hashed password (NOT recommended), it will disable the password function. To disable password (if you run offline on your phone only), modify the jupyter_notebook_config.json

# empty the value of password key in  jupyter_notebook_config.json:  
  
{  
 "NotebookApp": {  
 "password": ""  
 }  
}