How to run Jupyter notebook on a remote server

You can run Jupyter server on a remote machine instead of your local machine. Replace the server port number with the port you want for your remote machine: remoteuser@remotehost: jupyter notebook --no-browser --port=9888 [default 8888]Use ssh to open a path between your local machine and the remote machine. The first localhost port below is the client side of ssh on your local machine: localuser@localhost: ssh -N -f -L localhost:9000:localhost:9888 -i "keypair.pem" ubuntu@ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.comReplace the address after keypair.pem wit