Remote machines
Set up a headless jupyter notebook server on a specific port
On the remote machine (helpful to have tmux):
jupyter notebook --no-browser --port=8890
On the local machine:
ssh -N -f -L localhost:8888:localhost:8890 username@hostip
Now navigate to localhost:8888
to use