Using jupyter remotely

Posted on May 19, 2020
Tags: bash, server, jupyter

How to run jupyter notebooks on a server.

On the remote machine

Start jupyter with something like

jupyter-notebook --no-browser <dir> &

By default this runs jupyter on port 8888

On the local machine

ssh to the remote and forward the port 8888

ssh -L 8888:localhost:8888 <user>@<host>

Navigating in the browser to localhost:8888 now let’s you use the remote jupyter locally.