Running Jupyter Notebook on a remote server

With a command-line interface to the server, it is often hard to quickly scan through the contents on a server. This can be circumvented using jupyter-lab (or jupyter notebook) running on the server and accessing it using a client machine. I presume you have already installed jupyter-lab (or jupyter-notebook) on server. Jupyter-lab is a better option as it comes with a file-navigator, spread-sheet viewer (faster than excell, reminds me of sublime text) and an image-viewer. Check out this video for the latest feature updates in jupyter-lab.

  1. Run this command on the server-terminal:jupyter-lab --ip= --no-browserThe command above will start jupyter-lab on the default port 8888 of server and you will be presented with a link on your terminal which looks simillar this:
  2. Replace with the IP of the server (XXX.XXX.XXX.XXX) and paste the modified link on the client-browser.Replace jupyter-lab with jupyter-notebook for running notebook instead of lab.
  3. If you want to specify the port on which jupyter-lab is running, use this command:jupyter-lab --ip= --no-browser --port=6767 and the link now will become:​​​



Additional settings for AWS

For AWS you will have to let client access the server-IP by setting an additional inbound rule: In AWS panel go to Network & Security > Security Groups  and create a security group. This security group has to be attached to EC2 instance you are running. Check out these links below for more info:

Additional Resources

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s