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
{{ message }}
Repository navigation
Commit 0b9276a
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: source/modules/dev_environment/index.rst
+23-70Lines changed: 23 additions & 70 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,81 +23,36 @@ Setting Up A Development Environment For Python
23
23
24
24
The following is the recommended setup for the UWPCE Python Certificate Program. It is not necessary to have exactly this same setup, but if you choose to use a different setup, we will be less able to support you if you need help.
25
25
26
-
Minimal Setup
27
-
=============
26
+
Your Development Environment
27
+
============================
28
+
29
+
There are four basic elements to your environment when working with Python:
28
30
29
-
Although it is OK to use different tools, there are some requirements to successfully do the work the program requires:
31
+
* The Interpreter: cPython version 3.6.* or 3.7.*
32
+
* The Command Line: a way to run your code
33
+
* The Editor: a real "programmer's text editor"
34
+
* The source code version control system: Git
30
35
31
-
#. cPython version 3.6.* or 3.7.*
32
-
#. A way to edit Python files (Programmers Text Editor)
33
-
#. A way to run your code -- command line, IDE, etc.
34
-
#. A way to use the "git" source code version control system
36
+
In addtition, you will need to be able to:
37
+
38
+
* Run the iPython interactive interpreter
39
+
* Install new packages with pip
35
40
36
41
You can be successful in the program as long as you have the above. If you don't already have a setup that fulfills those requirements -- read on.
37
42
38
43
Platforms
39
44
---------
40
45
41
-
Python is a very platform independent system, it can run on all major operating systems, including micro controllers even. It is most commonly used in production on Windows, Linux or OS-X systems.
42
-
43
-
For this program, we feel it is best for students to work in an environment in which they are comfortable, and which they will ultimately use to do production work.
44
-
45
-
We have included instructions for Windows, Linux and OS-X systems -- any of these are fine.
46
+
Python is a very platform independent system. For this program, we feel it is best for students to work in an environment in which they are comfortable, and which they will ultimately use to do production work. We have included instructions for Windows, Linux and OS-X systems -- any of these are fine.
46
47
47
48
Python Itself
48
49
-------------
49
50
50
51
Python is a "byte compiled, interpreted" language. What this means to you is that you need a Python interpreter to run your Python code. It also means that that is all you need -- write some code, and run it with Python. That's it.
51
52
52
-
There are a number of different Python interpreters (or run-time environments) available:
53
-
54
-
- cPython
55
-
- PyPy
56
-
- Jython
57
-
- Iron Python
58
-
- MicroPython
59
-
60
-
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".
53
+
There are a number of different Python interpreters (or run-time environments) available. But most production Python is run with the cPython interpreter, and most people mean cPython when they say "Python".
61
54
62
-
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.
63
-
64
-
cPython itself is available from a number of sources, or "distributions". We recommend the version available from python.org.
65
-
66
-
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.
67
-
68
-
Your Development Environment
69
-
============================
70
-
71
-
There are three basic elements to your environment when working with Python:
72
-
73
-
* The Command Line
74
-
* The Interpreter
75
-
* The Editor
76
-
* The source code version control system
77
-
78
-
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.
79
-
80
-
Minimal Requirements
81
-
--------------------
82
-
83
-
In order to be productive in this program, you need to be able to do the following:
84
-
85
-
* Manipulate files and write and save Python code in files.
86
-
You really, really want a "real" programmer's editor for this.
87
-
88
-
* Run your code with Python 3.6 or 3.7
89
-
90
-
* Run the iPython interactive interpreter
91
-
92
-
* Install new packages with pip
93
-
94
-
* Use the git source code management system (with GitHub)
95
-
96
-
If you are not set up and comfortable with doing all that, read and follow these instructions:
97
-
98
-
:ref:`installing_python`
99
-
100
-
Then come back and follow the rest of this review.
55
+
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. We recommend the version available from python.org.
101
56
102
57
The Command Line (cli)
103
58
======================
@@ -108,17 +63,11 @@ Familiarity with basic use of the command line is a prerequisite for the program
108
63
109
64
We have some resources here: :ref:`command_line_basics`
110
65
111
-
We suggest running through the **cli** tutorial at "learn code the hard way":
112
-
113
-
`Command Line Crash Course <https://learnpythonthehardway.org/book/appendixa.html>`_
114
-
115
-
Or, for Linux and OS-X users:
66
+
.. raw:: html
116
67
117
-
`Linux command line for you and me! <https://lym.readthedocs.io/en/latest/>`_
118
-
119
-
120
-
Windows:
121
-
--------
68
+
<details>
69
+
<summary>Command Line for Windows:</summary>
70
+
------------------------
122
71
123
72
Most of the demos in lessons will be done using the "bash" command line shell on OS-X. This is identical to the bash shell on Linux.
124
73
@@ -131,6 +80,10 @@ on OS-X and Linux: :ref:`git_bash`
131
80
132
81
Or, on Windows 10, look into the "bash shell for Windows" otherwise known as the "Linux subsystem for Windows" - - more info here: :ref:`windows_bash`
0 commit comments