jupyter-notebookremote-accessremote-server

How to run a jupyter notebook through a remote server on local machine?


I have a remote access to remote server from my university and I'm accessing it through my local machine! However, my local machine has not enough memory to run multiple jupyter notebooks. Is there any way to run them through the remote server, which probably speed up tasks!! I'm not quite sure though!

I access the server from the terminal in macOS. Thanks!!


Solution

  • There's quite a good tutorial here

    Essentially you just run the notebook on the remote in no browser mode.

    jupyter notebook --no-browser --port=8080
    

    Then setup an ssh tunnel from the local machine:

    ssh -L 8080:localhost:8080 <REMOTE_USER>@<REMOTE_HOST>
    

    Then in your local browser go to: http://localhost:8080/

    EDIT:

    Running on a specific port is not necessary. The --no-browser tag is.