Software Install Instructions for Azure Notebooks

You can run everything we use in this course through the free Microsoft Azure Notebooks Service. This service hosts Python, Jupyter and git in the cloud so that you can run your code from any web browser.

Do Not Follow These Instructions Unless You Have Been Instructed To Do So.

If You Have Installed on Windows or OSX You Do Not Require the Azure Setup

Setup Procedure

Step 1 : Create Your Azure Notebook Library

  1. Go to the website https://notebooks.azure.com/. Click sign in to login in.
  2. Login with email netid@syr.edu. Where netid is your netid, of course!
  3. Enter your netid password for the password.
  4. After you are logged in, click on Libraries to take you to the libraries section of Azure Notebooks.
  5. Click on + New Library to create your library for this course.
  6. For the Library Name enter IST256 for the Library ID enter IST256
  7. Un-check the Public library and Create a README.md checkboxes.
    New Library
  8. When you are ready, click Create

Step 2 : Open the terminal window in Azure notebooks

  1. When your library is created, click on the IST256 library and click Terminal to launch the terminal. When the terminal launches you should see a command line with the prompt nbuser@nbserver:~$
  2. Switch the current working directory to the library folder by typing cd ~/library and pressing ENTER/RETURN. Your command prompt should now read nbuser@nbserver:~/library$

Step 3: Get access to our Github Classroom repository

  1. Go to the https://github.com/ website and sign in with your GitHub with the account and password.
  2. Click on this GitHub Classroom invite link here: https://classroom.github.com/a/QqTUu4OC
  3. A Page will ask you to accept the assignment.
    images/github-classroom-accept.png
    The part highlighted in yellow will match your GitHub username.
    Click Accept this assignment
  4. You might be asked to accept some permissions. Make sure to accept them. After that you will then see this confirmation screen.
    images/github-classroom-done.png
  5. Click the link at the bottom of the message to go to your repository page. (The link following the text Your assignment has been created here:)
  6. Your repository page will look like this:
    images/repository-page.png
    As usual, the highlighted portions should match your GitHub username.
  7. From the repository page (where you left off), click on the clone or download button:
    images/clone-or-download.png
  8. Copy the link under Clone with HTTPS.

Step 4 : Configure git in the Azure notebooks terminal window

From the Azure notebooks terminal window with command prompt nbuser@nbserver:~/library$ do the following:

  1. type git clone then paste in your close repository from the previous step. For example mine was https://github.com/IST256-classroom/learn-python-spring-2018-mafudge This will start the cloning process which will take about 1 minute.
  2. type git config credential.helper store to configure git to save passwords.
  3. type git config --global user.email "netid@syr.edu" to configure git to use your email. MAKE SURE TO USE YOUR NETID!!!
  4. type git config --global user.name "Your Name" to configure git commits with your name. AGAIN USE YOUR NAME HERE.

Step 5: Install Python modules

Next we will install the common Python components we will use in this course. This will save you a lot of time and headaches later on!

From the Azure notebooks terminal window with command prompt nbuser@nbserver:~/library$ do the following: .
3. First we install modules we will use in this course. Type:
pip install --user --upgrade geocoder lxml terminado numpy scipy requests
Again, this might take a few minutes, so be patient. 4. Finally, we install the last round of Python modules we will use in this course. Type:
pip install --user --uprgade pandas matplotlib plotly cufflinks folium bs4
And as usual it will take some time to install these modules.