Boston Python Workshop/Friday handout: Difference between revisions

removing spam
imported>Brittag
(removing spam)
 
(One intermediate revision by one other user not shown)
Line 8:
* To access the wireless network, connect to the Cambridge network and open a browser. You should be redirected to a login page, which will prompt you for a wireless code. The code is: pw304.
 
== Setting up Python ==
I'm so glad I found my solution onnile.
 
This section has instructions for installing Python and running Python from a terminal prompt.
 
# [[Python on Windows|Windows]]
# [[Python on OSX|OS X]]
# [[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 or you can start it from a terminal with:
gedit
 
== How to get to a Python prompt ==
 
Often in these directions, you'll need to type things at Python prompt. To get one:
 
* On Windows: Start -> Run -> cmd.exe
** Type this, and press enter:
** \python27\python
* On Linux or Mac OS:
** Open a Terminal, and type 'python'
 
== Intro to Programming stream: Setting up for the ColorWall ==
Line 38 ⟶ 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 ===
Such a deep asnewr! GD&RVVF
Run the example effects:
 
* On Windows, assuming the ColorWall software was downloaded to 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
python ~/Desktop/colorwall/ColorWall/run.py
* On Linux, assuming the ColorWall software was downloaded to ~/Desktop/colorwall/ColorWall run
python ~/Desktop/colorwall/ColorWall/run.py
 
=== Open run.py in text editor ===
Anonymous user