How to open Jupyter notebook from a remote server.

Dr Mohammad Mursalin
2 min readApr 14, 2020

--

I usually run my deep neural network in a remote server. The Jupiter notebook is a useful tool to see files and codes in the remote server. Today, I will show you how to open the Jupyter notebook from a remote server.

In this tutorial, I am considering the Ubuntu server and Windows 10 for the client.

Step 1: Open Windows PowerShell and connect to your remote server. Please see my post regarding the server connection (https://medium.com/@m_mursalin/tutorial-for-beginners-how-to-connect-remote-server-for-machine-learning-5ad1524ec32c).

server connection command

Step 2: After connecting to the server, type jupyter notebook and press enter.

Jupyter notebook weblink

Step 3: Open a new Windows PowerShell and type the following command:

ssh -N -f -L localhost:8889:localhost:8889 mdmursalin@10.1.128.134

here, you need to change the port number according to the last line from Step 2. Also, change the user id (mdmursalin)and server IP (10.1.128.134). Next, you need to type your password.

ssh command to connect Jupiter notebook with localhost

Step 4: Open your web browser and copy the last line from Step 2 Windows PowerShell, where you can see the HTTP link. For example, copy the HTTP link until the & symbol. See the screenshot below:

Paste the link in the web browser which will look like this:

Finally, you will see the below window where you will able to browse files and codes in your server.

Thank you so much. I hope my tutorial will help you to open the Jupyter notebook from a remote server.

--

--

Dr Mohammad Mursalin
Dr Mohammad Mursalin

Written by Dr Mohammad Mursalin

I'm a Data Scientist, passionate about analysing data to find innovative solutions. Follow me for insights on data science & professional development.

No responses yet