export $(cat .env | grep -v ^# | xargs)
jupyter notebook
import django; django.setup()
jupyter notebook --no-browser --port=8787
ssh -N -f -L localhost:8888:localhost:8787 remote_user@remote_host
Access Jupyter by opening localhost:8888
on your browser.
ps aux | grep "localhost:8787" | grep -v grep | awk "{ print \$2 }" | xargs kill -9