Azure Notebooks Configuration

In this final step in the setup process, you’ll need to clone your Github repository into the Azure Notebooks environment. This takes the sample code, labs, and homework assignments and copies them into Azure notebooks where you can edit and run them using Python in the browser.

Before You Begin

Have the following information handy:

  • Your GitHub username and password.
  • Your GitHub Classroom repository Url (copy it from the previous setup).

Setup Procedure

  1. Login to Azure notebooks https://notebooks.azure.com/ with your Syracuse University email and NetID password.
  2. Click on the IST256 project.
  3. CLick the Run button. This will start up your project. (Might say “Run on Free Tier”)
  4. Click Terminal to launch the terminal. When the terminal launches you should see a command line with the prompt nbuser@nbserver:~$
  5. 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$
  6. From the nbuser@nbserver:~/library$ prompt, 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 and press ENTER/RETURN.
    You will be prompted for your github username.
    You wiil be prompted for your github password. YOU WILL NOT SEE ANY CHARACTERS YOU TYPE.
    When you authenticate, the cloning process will start which takes about 1-2 minutes.
  7. After you clone the repository there are more commands to type. Press ENTER/RETURN after each one:
    Type git config --global credential.helper store to configure git to save passwords.
  8. Type git config --global user.email "[email protected]" to configure git to use your email. MAKE SURE TO USE YOUR SU EMAIL ADDRESS!
  9. Type git config --global user.name "Your Name" to configure git commits with your name. AGAIN USE YOUR FULL NAME HERE e.g. Michael Fudge.
  10. While at the command line, let’s install some Python modules we will need later in the course. Type:
    pip3 install --user --upgrade geocoder lxml terminado numpy scipy requests
    Again, this might take a few minutes, so be patient.
  11. Finally, we install the last round of Python modules we will use in this course. Type:
    pip3 install --user --upgrade pandas matplotlib plotly folium bs4
    And as usual it will take some time to install these modules. Be patient!

Next Steps

  • Let’s try to commit code using Git.