Boston Python Workshop/Friday handout: Difference between revisions

From OpenHatch wiki
Content added Content deleted
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.

  1. Windows
  2. OS X
  3. 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

You'll be writing effects for a ColorWall like the one in this video! {{#ev:vimeo|16522975}}

  1. Download the ColorWall project from http://mit.edu/jesstess/www/BostonPythonWorkshop
  2. 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 an ImportError, let a staff member know and we'll help get your dependencies set up. (*On some Debian installation, when you import Tkinter it will tell you that you need to install the python-tk package, which you should do)
  3. 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.