Skip to content

hertie-data-science-lab/azure-for-researchers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Setup For Windows | Setup For MacOS/Linux

Azure for Researchers Setup

Introduction

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;

For Windows

Please follow the following steps if you use Windows operating system:

Step 1: Download and Install the Remote Desktop App

The app is available on Windows Store or Mac Store.

Step 2: Contact IT Department for your access credentials

The access credentials should include an IP address, your username and password. Please do not share these credentials with anyone.

Step 3: Open up the Remote Desktop App

image

Step 4: Enter the Virtual Machine's Public IP address

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.

image

Step 5: Enter your username and password

Double click on the small card just created. You can then input your username and password.

image

Step 6: Accept the connection

image

Step 7: Virtual Machine is launched

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.

image

Step 8: Exit the Virtual Machine

image

For MacOS or Linux

Step 1: Contact IT Department for your access credentials

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!

Step 2: Access your Virtual Machine from your local machine

  • 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.

Step 3: Open a notebook kernel

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.

About

Azure setup for researchers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published