3 Replies Latest reply on Mar 14, 2018 4:53 AM by Intel Corporation

    Week 1 introduction to machine learning: PDF code error




      I'm currently a beginner in the python language and the jupyter notebook application. I am learning more about them from the Introduction to machine learning course offered for free by intel.

      Since I have no familiarity with the application, I try to run every example given. On page 20, I copied the code but I get this error when I run it.


      NameError  Traceback (most recent call last)

      <ipython-input-4-731e51dc0976> in <module>()

        1 image_url = 'http://qtoptens.com/wp-content/uploads/2017/05/Jhin_Splash_2.jpg'

      ----> 2 r = requests.get(image_url)


        4 #Load the Image



      NameError: name 'requests' is not defined


      Any ideas on what to do?