Nair – Week 3

Chapter 1: 

  • The chapter mentions Python as a “scripting language” more than a programming language. Although I’ve seen this word around a lot in the CS Jargon, I haven’t really understood what it meant. The book mentions a clear distinction between the two. 
  • The chapter also has a structure mentioned, as in a brief of what each chapter in the book entails, and that gives me a clear idea of what I’m going to be doing this semester. 
  • It also mentions the advantages of using Python instead of just relying on the tools offered by ArcGIS Pro. 
  • Was a very laid back introduction to  using Python in ArcGIS Pro, and gave me a gist of what I was getting myself into. 

Chapter 2: 

  • I had trouble as soon as I started. The Python Command Line doesn’t work or show the same things as the textbook. I tried to get the Command Line(Prompt) and IDLE started but wasn’t able to. I got the following error, every time I tried to run: 
  • Traceback (most recent call last):
  •   File “<pyshell#4>”, line 1, in <module>
  •     print(numpy._file_)
  • AttributeError: ‘module’ object has no attribute ‘_file_’
  • >>> 

 

  • I think downloading PyCharm might work? Not sure 
  • I got through it! The Python Window in ArcGIS Pro worked in the end and I did not need to download PyCharm as well. 
  • The Python Window can be accessed by: 
    • (Assuming you have a map opened) → View Tab → Python Pane. (It should show up at the bottom) 
  • The second chapter was an introduction to different types of Python IDEs and environments that can be used to go through with the book. Choosing the Python Window would be better in my opinion since there would be no need for extra downloads. 

 

I got through the first chapter in 20 minutes, however it took some time for the second one. But, I think now that I have figured this out, there should not be much trouble.