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