Create a notebook instance in the background of a server, and copy the url of the notebook.
On the server:
screen
jupyter lab --no-browser --port=xxxx
(e. g. 8889) on the new screen.
ctrl + a + d
On your local machine:
ssh -N -f -L localhost:xxxx:localhost:xxxx user@server.edu
http://localhost:8889/lab
python -m ipykernel install --user --name=beam