Connect to Supercomputer ITO Jupyter from client browser

Using port forwarding, from the client browser (verified with Chrome on Windows 10 Pro), Supercomputer ITO I will introduce how to connect to Jupyter Notebook (JupyterLab is also possible) started with the login node of). This makes it possible to plot the calculation results on the supercomputer as they are, which is very convenient. The client uses MobaXterm. This method is not limited to supercomputer use, but is a general method for connecting to Jupyter started on the server from the client browser using port forwarding. I referred to this material.

Preparation: Enable SSH agent

Click Settings-> Configuration-> SSH in MoberXterm. Check ʻUse internal SSH agent "MobAgent" of SSH agentsat the bottom, click thecross mark to the right of the box below it, and add the private key (extension ppk). Then click the ʻOK button. In addition, it is a good idea to check SSH keepalive in Settings-> Configuration-> SSH of MobaXterm to prevent SSH from being cut off due to timeout. These tasks need to be done only once.

procedure

Start Jupyter on login node

Start Jupyter Notebook without a browser (--no-browser) at the login node of the supercomputer.

$ jupyter notebook --ip=127.0.0.1 --port=8888 --no-browser

As a result, the following display will appear near the end. Copy and paste this part into the URL of the client browser later.

http://127.0.0.1:8888/?token=...

In the case of JupyterLab, it will start in the same way.

$ jupyter lab --ip=127.0.0.1 --port=8888 --no-browser

Build an access route to Jupyter with local port forwarding

Click + next to the MobaXterm tab to open a new terminal. This is called a local terminal. In this local terminal do the following: However, m00000a is a user account.

ssh -o ProxyCommand='ssh -W %h:%p %[email protected]' ito.cc.kyushu-u.ac.jp -l m00000a -L 8888:localhost:8888

After waiting for a while, the supercomputer terminal will appear, so wait until then.

Access the above URL in the client browser

Paste the URL (http://127.0.0.1:8888/?token=...) that appeared when you started Jupyter on the login node into the URL of the client browser to access it. Jupyter will now appear in the client's browser. Note: When copying a URL with MobaXterm, just select the URL with the mouse. Not Ctrl-C.

Recommended Posts

Connect to Supercomputer ITO Jupyter from client browser
Steps to run TensorFlow 2.1 from Jupyter on supercomputer ITO front end (with GPU)
Connect to sqlite from python
Connect to utf8mb4 database from python
Ssh connect to GCP from Windows
How to use Jupyter on the front end of supercomputer ITO
Connect to Packetix VPN from CentOS 7 minimal.
Connect to Docker's MySQL container from Flask
Execute a script from Jupyter to process
Connect to coincheck's Websocket API from Python
I want to connect to PostgreSQL from various languages
How to open a web browser from python
How to Git from GCP's Jupyter Lab to GSR
Use Tor to connect from urllib2 [Python] [Mac]
Connect to mysql
How to instantly launch Jupyter Notebook from the terminal