{"id":69,"date":"2021-09-20T20:19:33","date_gmt":"2021-09-21T01:19:33","guid":{"rendered":"https:\/\/sites.owu.edu\/geog-199\/?p=69"},"modified":"2021-10-10T11:07:48","modified_gmt":"2021-10-10T16:07:48","slug":"wade-chapter-2-working-with-python-editors","status":"publish","type":"post","link":"https:\/\/sites.owu.edu\/geog-293\/2021\/09\/20\/wade-chapter-2-working-with-python-editors\/","title":{"rendered":"Wade: Chapter 2: Working With Python Editors"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Mack Wade<\/span><\/p>\n<p><span style=\"font-weight: 400\">Chapter 2: Working with Python Editors<\/span><\/p>\n<p><b>Notes<\/b><\/p>\n<p><span style=\"font-weight: 400\">This chapter wasn\u2019t too hard to follow along to. I\u2019m pretty familiar with Pro and some of the terms used. I only followed along with the Python window in Pro.\u00a0<\/span><\/p>\n<p><b>Key Terms:<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Command Line Interface: A command-line interface processes commands to a computer program in the form of lines of text.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Dependency: to refer when a piece of software relies on another one. Simply put, if Program A requires Program B to be able to run, Program A is dependent on Program B.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Environment: a hardware platform and the operating system<\/span><span style=\"font-weight: 400\"> that is used in it<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Interactive Interpreter: <\/span><span style=\"font-weight: 400\">Python interpreter runs each line of your code directly. This allows you to use the Python interpreter interactively, simply by typing python at a command prompt.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Module: <\/span><span style=\"font-weight: 400\">A module is <\/span><span style=\"font-weight: 400\">a software component or part of a program that contains one or more routines<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Package Manager: <\/span><span style=\"font-weight: 400\">A package manager or package-management system is a collection of software tools that automates the process of installing, upgrading, configuring, and removing computer programs for a computer&#8217;s operating system in a consistent manner.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Printing: refers to writing text on the screen<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Prompt: signals where you can type code<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">PyCharm: <\/span><span style=\"font-weight: 400\">PyCharm is an integrated development environment used in computer programming<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Python editor: has a menu-driven interface and tools for organizing and testing Python scripts to make working with Python easier<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Python environment: <\/span><span style=\"font-weight: 400\">A virtual environment is <\/span><span style=\"font-weight: 400\">a tool that helps to keep dependencies required by different projects<\/span><span style=\"font-weight: 400\"> separate by creating isolated python virtual environments for them.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Python Package manager: <\/span><span style=\"font-weight: 400\">Python Package Manager is a Python utility intended to simplify the tasks of locating, installing, upgrading and removing Python packages. It can determine if the most recent version of a software package is installed on a system, and can install or upgrade that package from a local or remote host.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Python Shell: <\/span><span style=\"font-weight: 400\">Python provides a Python Shell, which is <\/span><span style=\"font-weight: 400\">used to execute a single Python command and display the result<\/span><span style=\"font-weight: 400\">.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><b>Review Questions<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Which Python editor comes installed with every version of Python?\u00a0<\/span>\n<ul style=\"list-style-type: circle\">\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">IDLE comes installed with every version of python.\u00a0<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">What are some of the recommended Python editors to work with in Pro?<\/span>\n<ul style=\"list-style-type: circle\">\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Spyder, Pycharm<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">What is syntax highlighting?<\/span>\n<ul style=\"list-style-type: circle\">\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Syntax highlighting is a feature of text editors that are used for programming, scripting, or markup languages, such as HTML. The feature displays text, especially source code, in different colours and fonts according to the category of terms.<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">What is the file extension for a Python script file?<\/span>\n<ul style=\"list-style-type: circle\">\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">.py\u00a0<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">How do you open the Python window in Pro?<\/span>\n<ul style=\"list-style-type: circle\">\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Analysis Tab &gt; Python &gt; Python window<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">What are some typical examples of autocompletion prompts in the python window, and how do they help you write proper code<\/span>\n<ul style=\"list-style-type: circle\">\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">They assist in reducing the amount of writing you need to do<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Mack Wade Chapter 2: Working with Python Editors Notes This chapter wasn\u2019t too hard to follow along to. I\u2019m pretty familiar with Pro and some of the terms used. I only followed along with the Python window in Pro.\u00a0 Key <span class=\"readmore\"><a href=\"https:\/\/sites.owu.edu\/geog-293\/2021\/09\/20\/wade-chapter-2-working-with-python-editors\/\">Continue Reading<\/a><\/span><\/p>\n","protected":false},"author":1413,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-chapter-notes"],"_links":{"self":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/users\/1413"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":2,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":71,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/posts\/69\/revisions\/71"}],"wp:attachment":[{"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.owu.edu\/geog-293\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}