You need to use Putty to connect to the server. You should have already installed and tested this during the first day of the summer school.
The Anaconda Scientific Python Distribution is a really convenient tool, to install, manage, and use scientific python packages. It allows you to install a complete distribution, under a user directory, without conflicting with system packages. This also allows to have the latest version of Python, to older servers.
Anaconda is already installed in your systems, both in version 2 and 3.
For this workshop we'll use version 3.
Before we activate Anaconda, first let's check the current version of Python with python --version
. The output should be similar to:
[cloud@sstestauto ~]$ python --version
Python 2.7.5
To activate your Anaconda environment, issue the following command on your VM.
source anaconda3/bin/activate
If you check again the python version you should get the following result:
(root) [cloud@sstestauto ~]$ python --version
Python 3.6.1 :: Anaconda 4.4.0 (64-bit)
To connect to the notebook that runs on a remote server, we could:
Open a new terminal window and execute the following command, replacing <IP>
with the IP of your server
ssh -N -L localhost:8888:localhost:8889 cloud@141.5.102.194
The command will not return, and keep running. To stop it you can issue a CTRL+C
.
Alternatively you could also:
-f
flag, for the command to go to background. You can utilize the terminal, but it is easy to forget that you started it later.-N
flag. This will allow you to use a terminal in the remote machineNow you should be able to go to http://localhost:8888 and connect to your notebook. You would be asked to provide the password that you created at a previous step.
You should be seeing something similar to this: