Skip to content

Commit 0b9276a

Browse files
authored
Update index.rst
Draft in progress, trying to streamline the information for ease of reading. Also experimenting to see if a collapsible section is possible.
1 parent 2ca4a2d commit 0b9276a

1 file changed

Lines changed: 23 additions & 70 deletions

File tree

‎source/modules/dev_environment/index.rst‎

Lines changed: 23 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -23,81 +23,36 @@ Setting Up A Development Environment For Python
2323

2424
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.
2525

26-
Minimal Setup
27-
=============
26+
Your Development Environment
27+
============================
28+
29+
There are four basic elements to your environment when working with Python:
2830

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
3035

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
3540

3641
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.
3742

3843
Platforms
3944
---------
4045

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.
4647

4748
Python Itself
4849
-------------
4950

5051
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.
5152

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".
6154

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.
10156

10257
The Command Line (cli)
10358
======================
@@ -108,17 +63,11 @@ Familiarity with basic use of the command line is a prerequisite for the program
10863

10964
We have some resources here: :ref:`command_line_basics`
11065

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
11667

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+
------------------------
12271

12372
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.
12473

@@ -131,6 +80,10 @@ on OS-X and Linux: :ref:`git_bash`
13180

13281
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`
13382

83+
.. raw:: html
84+
85+
</details>
86+
13487
OS-X
13588
----
13689

0 commit comments

Comments
 (0)