Wing IDE


Wing IDE is "the intelligent development environment for Python programmers." Wing is available in EHS 117 and EHS 119 and is the development environment of choice for coursework in Python.


Installing

You may also download and install Wing (free "Personal" edition) on your personal machine (available for Windows, Linux, and macOS). If you are an upper-division major, please contact me about a 12-month academic license if you require advanced functionality (version control, unit tests, refactoring, remote development, etc).


Getting Started

Make sure you have a working Python installation. After you have installed Python, proceed to the next step.


Environment

Run Wing. Make sure the "Python Shell" tool pane is visible (you can quickly add it or bring it to the front by selecting "Tools" > "Python Shell" from the menu bar). Verify that the shell reports the correct Python version.

For example:

3.5.3 (default, Apr 23 2017, 18:09:27) 
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]
Python Type "help", "copyright", "credits" or "license" for more information.

If the shell reports a different version (say, version 2.7 instead of version 3.5), do the following in Wing:

Back in the "Python Shell" tool pane, restart the shell by selecting the "Options" > "Restart Shell" menu on the tool pane (or simply quit and re-run Wing). The shell should now report the correct Python version. If not, verify that you have a working Python installation.


Preferences

Open the Wing IDE preferences ("Edit" > "Preferences" menu on Windows and Linux, "WingPersonal" > "Preferences" menu on macOS). Ensure that the following preferences are set correctly:

Category Subcategory Preference Value
Files General Default Encoding utf-8 (your system may already default to this)
New File EOL Line Feed \n
New File Extension .py
Editor General Show Line Numbers checked
Show Whitespace checked
Indentation Default Indent Size 4 (or 3, if you prefer)
Default Indent Style Spaces Only
Show Indent Guides checked
Line Wrapping Wrap Long Lines unchecked
Edge Markers: Mode Border
Edge Markers: Column 80

First Steps

Enter the following source code into a new, empty document window in Wing:

name = 'world'
print('Hello, ' + name + '!')

Save the program to your desktop as hello.py. Now, run the program by doing one of the following:

Verify that your program runs without errors and displays the expected output in the "Debug I/O" tool pane (try the "Tools" > "Debug I/O" menu if you can't find it).

For example:

Hello, world!

Now, modify the program to print your name.


This page was last modified on 2017-12-27 at 21:06:19.

Copyright © 2015–2018 George Fox University. All rights reserved.