You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/topics/01-setting_up/python_and_core_tools.rst
+19-17Lines changed: 19 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,23 +44,24 @@ There are a number of different Python interpreters (or run-time environments) a
44
44
45
45
These each have their own special uses. For example, for interaction with the Java VM or Microsoft CLR, or running on micro controllers. But most production Python is run with the cPython interpreter, and most people mean cPython when they say "Python".
46
46
47
-
For this program, you will need cPython version 3.6, installed and running so that when you type "python" at your command line, it starts up.
47
+
For this program, you will need cPython version 3.8, installed and running so that when you type "python" at your command line, it starts up.
48
48
49
-
cPython itself is available from a number of sources, or "distributions". We recommend the version available from python.org.
49
+
cPython itself is available from a number of sources, or "distributions". We recommend the version available from `python.org`.
50
50
51
51
Python is also available as part of the Anaconda data analysis environment, as well as a few other sources. These Python distributions will work fine for this class, but when we get to advanced topics like virtual environments, there are some differences -- and you will be responsible for adapting to these differences.
52
52
53
+
53
54
Your Development Environment
54
55
============================
55
56
56
-
There are three basic elements to your environment when working with Python:
57
+
There are four elements to your environment when working with Python:
57
58
58
59
* The Command Line
59
60
* The Interpreter
60
61
* The Editor
61
62
* The source code version control system
62
63
63
-
Some folks use an Integrated Development Environment (IDE), which combines some or all of these functions. For this class, we don't recommend using an IDE, because while it can make some things easier, it can also hide things that will be good for you to understand.
64
+
Some folks use an Integrated Development Environment (IDE), which combines some or all of these functions. For this class, we don't recommend using an IDE, because while it can make some things easier, it can also hide things that will be good for you to understand. But it's your call -- you should use tools you are comfortable with.
64
65
65
66
Minimal Requirements
66
67
--------------------
@@ -85,7 +86,7 @@ If you are not set up and comfortable with doing all that, read and follow these
85
86
Then come back and follow the rest of this review.
86
87
87
88
88
-
The Command Line (cli)
89
+
The Command Line (CLI)
89
90
======================
90
91
91
92
Having some familiarity with the command line is important
@@ -94,7 +95,7 @@ Familiarity with basic use of the command line is a prerequisite for the program
94
95
95
96
We have some resources here: :ref:`command_line_basics`
96
97
97
-
We suggest running through the **cli** tutorial at "learn code the hard way":
98
+
We suggest running through the **CLI** tutorial at "learn code the hard way":
98
99
99
100
`Command Line Crash Course <https://learnpythonthehardway.org/book/appendixa.html>`_
100
101
@@ -128,7 +129,7 @@ Drag and Drop it into the dock for easy access.
128
129
129
130
The Terminal app can be interfaced with the Finder, making it easy to open it up with the working dir set to the current folder in the finder:
130
131
131
-
On The Mac, you can add a "New Terminal at Folder" right-click menu item by:
132
+
On The Mac, you may have a "New Terminal at Folder" right-click (or command click -- "secondary click") menu item already -- try it! If not, you can turn it on by following these instructions:
132
133
133
134
Head into System Preferences and select Keyboard => Shortcuts => Services. Find "New Terminal at Folder" in the settings and click the box. Now, when you're in Finder, just right-click a folder and you're shown the open to open Terminal. When you do, it'll start right in the folder you're in.
134
135
@@ -247,22 +248,22 @@ Typing code in an interpreter is great for exploring.
247
248
248
249
But for anything "real", you'll want to save the work you are doing in a more permanent fashion.
249
250
250
-
This is where an Editor fits in.
251
+
This is where an editor fits in.
251
252
252
253
.. _editor_for_python:
253
254
254
255
Text Editors Only
255
256
-----------------
256
257
257
-
Any good programmers text editor will do.
258
+
Any good programmer's text editor will do.
258
259
259
260
MS Word is **not** a text editor.
260
261
261
262
Nor is *TextEdit* on a Mac.
262
263
263
264
``Notepad`` on Windows is a text editor -- but a poor one.
264
265
265
-
You need a real "programmers text editor"
266
+
You need a real "Programmer's Text Editor"
266
267
267
268
A text editor saves only what it shows you, with no special formatting
268
269
characters hidden behind the scenes.
@@ -299,7 +300,7 @@ https://atom.io/
299
300
300
301
:ref:`vsc_as_ide`
301
302
302
-
And, of course, vim or Emacs on Linux, if you are familiar with those.
303
+
And, of course, vim or Emacs on Linux, if you are familiar with one of those.
303
304
304
305
305
306
Why No Full IDE?
@@ -314,19 +315,20 @@ Setting up IDEs to work with different projects can be challenging and time-cons
314
315
Particularly when you are first learning, you don't want too much done for you.
315
316
316
317
317
-
Why Not an IDE?
318
-
---------------
318
+
Why an IDE?
319
+
-----------
319
320
320
321
That said ...
321
322
322
323
You may want to go get the educational edition of PyCharm:
323
324
324
325
https://www.jetbrains.com/pycharm-edu/
325
326
326
-
Which is awesome.
327
+
Which a lot of people like a lot.
328
+
329
+
VSCode from MS is apretty full featured IDE as well.
327
330
328
-
But do make sure, when you set it up, that you know what its doing when you click "run"
329
-
, and that it is using the version of Python that you expect.
331
+
But do make sure, when you set up and IDE, that you know what its doing when you click "run", and that it is using the version of Python that you expect. (cPython 3.8 in this case)
330
332
331
333
Version Control System
332
334
========================
@@ -335,7 +337,7 @@ While not strictly necessary to develop code, it is a very, very, good idea to m
335
337
336
338
https://en.wikipedia.org/wiki/Version_control
337
339
338
-
This is such a critical software development practice the we use it in the program for you to mange your projects and turn in assignments, so that you can gain familiarity with the practice.
340
+
This is such a critical software development practice the we use it in the program for you to mange your projects and turn in assignments (via gitHub classroom), so that you can gain familiarity with the practice.
0 commit comments