Boston Python Workshop/Friday handout: Difference between revisions
imported>Jesstess |
imported>Jesstess |
||
Line 1: | Line 1: | ||
== Section 1: Setting up Python == |
== Section 1: Setting up Python == |
||
This section has instructions for installing Python and running Python from a terminal prompt. |
|||
# [[Python on Windows|Windows]] |
# [[Python on Windows|Windows]] |
||
# [[Python on OSX|OS X]] |
# [[Python on OSX|OS X]] |
||
# [[Python on Linux|Linux]] |
# [[Python on Linux|Linux]] |
||
In addition to being able to run Python, you should pick the text editor you'll use for writing and saving Python code during the workshop. |
|||
* On Windows, you might use NotePad. To start NotePad: click Start, point to Programs, point to Accessories, and then click Notepad. |
|||
* On OS X, you might use TextEdit. To start TextEdit: search for TextEdit from Spotlight, or navigate to Applications/TextEdit. |
|||
* On Linux, you might use GEdit. To start GEdit: click Applications, point to Accessories, and click Text Editor. |
|||
== Section 2: Setting up the ColorWall == |
== Section 2: Setting up the ColorWall == |
Revision as of 16:02, 4 March 2011
Section 1: Setting up Python
This section has instructions for installing Python and running Python from a terminal prompt.
In addition to being able to run Python, you should pick the text editor you'll use for writing and saving Python code during the workshop.
- On Windows, you might use NotePad. To start NotePad: click Start, point to Programs, point to Accessories, and then click Notepad.
- On OS X, you might use TextEdit. To start TextEdit: search for TextEdit from Spotlight, or navigate to Applications/TextEdit.
- On Linux, you might use GEdit. To start GEdit: click Applications, point to Accessories, and click Text Editor.
Section 2: Setting up the ColorWall
You'll be writing effects for a ColorWall like the one in this video! {{#ev:vimeo|16522975}}
- Download the ColorWall project from http://mit.edu/jesstess/www/BostonPythonWorkshop
- Windows users, try http://mit.edu/jesstess/www/BostonPythonWorkshop/ColorWall.zip first. The file should automatically get uncompressed when you download it.
- OS X and Linux users can use either the .zip or .tar.gz file.
- The ColorWall project has no dependencies to install on common, modern Windows, OS X, and Linux* distributions. To confirm that you have no dependencies to install, at Python prompt run:
import Tkinter
If that command results in anImportError
, let a staff member know and we'll help get your dependencies set up. (*On some Debian installation, when youimport Tkinter
it will tell you that you need to install thepython-tk
package, which you should do) - Run the example effects
Section 3: (Optional) Setting up the web app
The web app is an example of an integrated Python-based application. It uses the Django web framework. Because the setup for this project is somewhat involved, this project and it's setup are optional. Attendees interested in the material or who have some programming experience are encouraged to work through the setup instructions with a staff member.
The web app setup instructions are here.
That's it! Friday is over
Chat with us! Ask questions! Go home!
Love,
Boston Python Workshop staff.