Editing Community Data Science Workshops (Spring 2014)/April 5th Windows project dependencies

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 11: Line 11:
 
You'll be writing graphical effects for ColorWall. Download the ColorWall code and example effects so you're ready to start working with them tomorrow:
 
You'll be writing graphical effects for ColorWall. Download the ColorWall code and example effects so you're ready to start working with them tomorrow:
  
# Right click the following file, click "Save Target as..." or "Save link as...", and save it to your Desktop directory: http://mako.cc/teaching/2014/cdsw/ColorWall.zip
+
# Right click the following file, click "Save Target as..." or "Save link as...", and save it to your Desktop directory:
# The ".zip" extension on the above file indicates that it is a compressed Zip archive. We need to "extract" its contents. To do this, click on "Start", then "Computer", and navigate to your Desktop directory. Find ColorWall.zip on your Desktop and double-click on it to "unzip" it. That will create a folder called ColorWall containing several files.
+
#* http://mako.cc/teaching/2014/cdsw/ColorWall.zip
 +
#The ".zip" extension on the above file indicates that it is a compressed Zip archive. We need to "extract" its contents. To do this, click on "Start", then "Computer", and navigate to your Desktop directory. Find ColorWall.zip on your Desktop and double-click on it to "unzip" it. That will create a folder called ColorWall containing several files.
  
 
===Test the ColorWall code===
 
===Test the ColorWall code===
Line 18: Line 19:
 
Start a command prompt and navigate to the Desktop\ColorWall directory where the ColorWall code lives. For example, if the ColorWall project is at <code>C:\Users\mako\Desktop\ColorWall</code>,
 
Start a command prompt and navigate to the Desktop\ColorWall directory where the ColorWall code lives. For example, if the ColorWall project is at <code>C:\Users\mako\Desktop\ColorWall</code>,
  
cd C:\Users\mako\Desktop\ColorWall
+
<pre>
 +
cd C:\Users\mako\Desktop\ColorWall</pre>
  
 
will change you into that directory, and
 
will change you into that directory, and
  
dir
+
<pre>
 +
dir
 +
</pre>
  
 
will show you the source code files in that directory. One of the files is "run.py", which has a ".py" extension indicating that it is a Python script. Type:
 
will show you the source code files in that directory. One of the files is "run.py", which has a ".py" extension indicating that it is a Python script. Type:
  
python run.py
+
<pre>
 +
python run.py
 +
</pre>
  
 
at the command prompt to execute the run.py Python script. You should see a window pop up and start cycling through colorful effects. If you don't, let a staff member know.
 
at the command prompt to execute the run.py Python script. You should see a window pop up and start cycling through colorful effects. If you don't, let a staff member know.
Line 32: Line 38:
 
Now type:
 
Now type:
  
python run.py -a -s
+
<pre>
 +
python run.py -a -s
 +
</pre>
  
 
at the command prompt to execute the run.py Python script so that it runs only the advanced effects. You should see a window pop up and start cycling through different colorful effects. If you don't, let a staff member know.
 
at the command prompt to execute the run.py Python script so that it runs only the advanced effects. You should see a window pop up and start cycling through different colorful effects. If you don't, let a staff member know.
Line 38: Line 46:
 
You can also run both sets of effects by typing:  
 
You can also run both sets of effects by typing:  
  
python run.py -a
+
<pre>
 +
python run.py -a
 +
</pre>
  
 
===Success!===
 
===Success!===
Line 52: Line 62:
 
We've written some skeleton code for the Wordplay project already. Download this code so you're ready to start working with it tomorrow:
 
We've written some skeleton code for the Wordplay project already. Download this code so you're ready to start working with it tomorrow:
  
# Right click the following file, click "Save Target as..." or "Save link as...", and save it to your Desktop directory: http://mako.cc/teaching/2014/cdsw/Wordplay.zip
+
# Right click the following file, click "Save Target as..." or "Save link as...", and save it to your Desktop directory:
 +
#* http://mako.cc/teaching/2014/cdsw/Wordplay.zip
 
# Find Wordplay.zip on your Desktop and double-click on it to "unzip" it. That will create a folder called Wordplay containing several files.
 
# Find Wordplay.zip on your Desktop and double-click on it to "unzip" it. That will create a folder called Wordplay containing several files.
  
Line 59: Line 70:
 
Start a command prompt and navigate to the Desktop\Wordplay directory where the Wordplay code lives. For example, if the Wordplay project is at <code>C:\Users\mako\Desktop\Wordplay</code>,
 
Start a command prompt and navigate to the Desktop\Wordplay directory where the Wordplay code lives. For example, if the Wordplay project is at <code>C:\Users\mako\Desktop\Wordplay</code>,
  
cd C:\Users\mako\Desktop\Wordplay
+
<pre>
 +
cd C:\Users\mako\Desktop\Wordplay
 +
</pre>
  
 
will change you into that directory, and
 
will change you into that directory, and
  
dir
+
<pre>
 +
dir
 +
</pre>
  
 
will show you the source code files in that directory. One of the files is "words1.py", which has a ".py" extension indicating that it is a Python script. Type:
 
will show you the source code files in that directory. One of the files is "words1.py", which has a ".py" extension indicating that it is a Python script. Type:
  
python words1.py
+
<pre>
 +
python words1.py
 +
</pre>
  
 
at the command prompt to execute the words1.py Python script. You should see a column of English words printed to the screen. If you don't, let a staff member know.
 
at the command prompt to execute the words1.py Python script. You should see a column of English words printed to the screen. If you don't, let a staff member know.

Please note that all contributions to OpenHatch wiki are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) (see OpenHatch wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page: