Setup For Windows | Setup For MacOS/Linux
Azure is a cloud computing service that offers a number of options for remote virtual machines with high computational performance and large RAM space - ideal for a number of research in econometrics, electricity modelling and data science. This short guide will help to set up the connection from your local laptop/computer to the remote machines created for Hertie School Research Computing.
Specification:
- Windows OS: 8 cores, 64GB RAM, 200GB Temp storage, 256GB persistent storage;
- Ubuntu: 8 cores, 64GB RAM, 200GB Temp storage, 256GB persistent storage;
Please follow the following steps if you use Windows operating system:
The app is available on Windows Store or Mac Store.
The access credentials should include an IP address, your username and password. Please do not share these credentials with anyone.
Once you click on Add PC, you can enter the IP address provided to you by our IT team on the first field in the pop-up table.
Double click on the small card just created. You can then input your username and password.
The Windows Virtual Machine environment will be launched. You can install STATA, GAMS or any software for your computing needs with your own private workspace.
The access credentials should include a private key file (.pem file extension), your username and public IP to access the virtual machine. Please do not share these credentials with anyone!
- Fire up your terminal
- Connect to your remote Virtual Machine on Azure:
ssh -i <private key path> <user@server-instance> -L 8888:127.0.0.1:8888
8888 is the port on your local machine exclusively used by Jupyter Notebook. The -L 8888:127.0.0.1:8888 helps to create a tunnel from port 8888 in your local machine to port 127.0.0.1:8888 in the remote Virtual Machine.
You will be asked: "Are you sure you want to continue connecting?" Type yes, and connection to the remote server on Azure will be established.
The image we use for Linux is the Data Science Virtual Machine Ubuntu for Azure. After everything is set up properly, you will have access to 6 different Python environment:
-
- py37_tensorflow
-
- py37_pytorch
-
- azureml_py36_tensorflow
-
- azureml_py36_pytorch
-
- azureml_py36_automl
The default environment is python37_default. You can switch to the other environment with the following command. Depending on your need, each environment will have a set of tools and libraries pre-installed and ready for your data science projects:
conda activate py37_tensorflow
To deactivate:
conda deactivate
To start up a Jupyter Notebook or Lab kernel:
jupyter notebook
or
jupyter lab
The notebook will be launched in port 127.0.0.1:8888, which you can visit by copying and pasting the link on the terminal to your browser.