Tmux might be what you are looking for.
Install tmux, start tmux (just typing tmux
from terminal should work), run jupyter notebook. Once you disconnected the notebook should still be running.
After you connect, type tmux -a
to reconnect to the sessions.
Tmux is qutie useful for working on remote machines - this book and associated materials are a very good intro in case you wanted to learn more about its features