Running Jupyter Notebook on a remote server┬Â

Follow the following steps to use Jupyter Notebook launched from remote server.

  1. Launch Jupyter Notebook from remote server using port 8080: jupyter notebook --no-browser --port=8080

    Or run the following command to launch with default port: jupyter notebook --no-browser

    Please note the port setting. You will need it in the next step.

  2. You can access the notebook from your remote machine over SSH by setting up a SSH tunnel. Run the following command from your local machine: ssh -L 8080:localhost:<port> <remote_user>@<remote_host>


    Replace <port> with your port number used in the above step, <remote_user> with remote server username, and <remote_host> with your remote server address.

    The above command opens up a new SSH session in the terminal.

  3. Open a browser from your local machine and navigate to http://localhost:8080/, the Jupyter Notebook web interface. Replace 8080 with your port number used in step 1.