Boston Python Workshop/Friday handout: Difference between revisions

removing spam
imported>Lsblakk
imported>Brittag
(removing spam)
 
(14 intermediate revisions by 7 users not shown)
Line 61:
If that command results in an <code>ImportError</code> try following the [http://tkinter.unpythonic.net/wiki/How_to_install_Tkinter instructions for installing Tkinter here] and if you have problems let a staff member know and we'll help you. (*On some Debian installation, when you <code>import Tkinter</code> it will tell you that you need to install the <code>python-tk</code> package, which you should do). After you are done at the Python prompt, exit to the regular terminal by typing <code>exit()</code> and hitting enter.
 
=== Run the ColorWall ===
Run the example effects:
 
* On Windows, assuming the ColorWall software was downloaded to <code>C:\Users\yourusername\Desktop\ColorWall
run \Python27\python.exe "C:\Users\yourusername\Desktop\colorwall\ColorWall\run.py"
* On OS X, assuming the ColorWall software was downloaded to ~/Desktop/colorwall/ColorWall run
Line 71:
python ~/Desktop/colorwall/ColorWall/run.py
 
=== Open run.py in text editor ===
Make sure you can open Python files in a text editor. Test this by running the text editor, navigating to your ColorWall directory, and opening
# Linux
Line 78:
# Mac/Windows right-click on run.py and "open with" your text editor of choice
 
==== Programmer: You're ready for Saturday! ====
If you're doing the programming section of the workshop tomorrow and you got this far, you're ready to go. Show an instructor your run.py working and also opened in a text editor, get your sticker and go have a good sleep.
 
== Intro to Web App stream: Setting up Django ==
 
If you want to make a web app on Saturday, you'll haveneed to goinstall throughsome this process. This is an optional step in setup; however, it can be an exciting and fulfillingadditional onepackages. The web app is an example of an integrated Python-based application. It uses the [http://www.djangoproject.com/ Django] web framework. Because the setup for this project is somewhat involved, this project and its setup are optional. If you run into trouble, get the help of aan staff memberinstructor. '''Instructions''': [[Setting up the web app]]
 
==== Web Developer: You're ready for Saturday!====
If you are interested in the material, please try:
 
If you're doing the web app stream of the workshop tomorrow and you got this far, you're ready to go. Show an instructor that your welcome page on alwaysdata.net is working, get your sticker and go have a good sleep.
* [[Setting up the web app]]
 
== That's it! Friday is over. ==
 
In summary, make sure you leave on Friday comfortable with the following things:
 
# Running Python from a command prompt
# Running the ColorWall from a command prompt
# Editing Python code in a text editor
 
Let us know if you have any questions about Friday's setup or Saturday's workshop, and we look forward to seeing you on Saturday!
Anonymous user