Editing Community Data Science Workshops (Fall 2014)/Day 0 setup and tutorial

From CommunityData

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 publish the changes below to finish undoing the edit.

Latest revision Your text
Line 13: Line 13:
If you already have a UW NetID of your own, you should be all set with the network.
If you already have a UW NetID of your own, you should be all set with the network.


If you are not from UW, you will have to use a temporary shared NetID which we have created for the conference. We'll write the username and password up on whiteboard in each of the rooms we are using. Also, make sure you agree with the [http://uw.edu/itconnect/work/appropriate-use/ UW's policy on the ethical use of computers and networks].
If you are not from UW, you will have to use a temporary shared NetID which we have created for the conference. We'll write the username and password up on blackboard in each of the rooms we are using. Alos, make sure you agree with the [http://uw.edu/itconnect/work/appropriate-use/ UW's policy on the ethical use of computers and networks].


== Goal #1: Set up Python ==
== Goal #1: Set up Python ==
Line 21: Line 21:
First things first: We need to install the Python programming language. Please complete the instructions below for your operating system:
First things first: We need to install the Python programming language. Please complete the instructions below for your operating system:


* [[Windows set up Python (Anaconda)|Windows]]  
* [[Windows set up Python|Windows]]
* [[OSX set up Python (Anaconda)|OS X]]
* [[OSX set up Python|OS X]]
* [[Linux set up Python (Anaconda)|Linux]]
* [[Linux set up Python|Linux]]


== Goal #2: Prepare a text editor ==
== Goal #2: Prepare a text editor ==
Line 71: Line 71:
(Estimated time: 10 minutes)
(Estimated time: 10 minutes)


* [[Community Data Science Workshops (Fall 2014)/November 7th Windows projects download|Windows]]
* [[Community Data Science Workshops/April 5th Windows project dependencies|Windows]]
* [[Community Data Science Workshops (Fall 2014)/November 7th OSX projects download|OS X]]
* [[Community Data Science Workshops/April 5th OSX project dependencies|OS X]]
* [[Community Data Science Workshops (Fall 2014)/November 7th Linux projects download|Linux]]
* [[Community Data Science Workshops/April 5th Linux project dependencies|Linux]]


== Goal #7: Start learning Python! ==
== Goal #7: Start learning Python! ==
Line 92: Line 92:
To give you this practice, we've created custom online practice problems just for this class, using a site called Codecademy!
To give you this practice, we've created custom online practice problems just for this class, using a site called Codecademy!


Tonight, please visit the link below and complete the '''8 practice problems in the "Strings and choices" section'''. '''Go ahead and skip problem #4 ("Make HTML")'''. It's not a problem if you do it but we find that it's confusing and we'd prefer to skip it this time.  
Tonight, please visit the link below and complete the '''8 practice problems in the "Strings and choices" section'''.


<div style="font-size:125%">[http://www.codecademy.com/courses/python-beginner-en-kSQwt &raquo; Click here and complete tonight's Codecademy exercises &laquo;]</div>
<div style="font-size:125%">[http://www.codecademy.com/courses/python-beginner-en-kSQwt &raquo; Click here and complete tonight's Codecademy exercises &laquo;]</div>
Line 105: Line 105:
* Create a new Python file (with a .py extension). In that file, type: <code>print("Hello World")</code> and then Enter and save the file. From a terminal prompt, navigate to and execute that Python script.
* Create a new Python file (with a .py extension). In that file, type: <code>print("Hello World")</code> and then Enter and save the file. From a terminal prompt, navigate to and execute that Python script.
* Open your text editor, and press "Tab". Use the left arrow key to show the instructor that you are using spaces to indent, not tabs.
* Open your text editor, and press "Tab". Use the left arrow key to show the instructor that you are using spaces to indent, not tabs.
* To test the baby names project installation: navigate to the babynames directory and run <code>babynames1.py</code>:
* To test the ColorWall installation: navigate to the ColorWall directory and run <code>run.py</code>:


  python babynames1.py
  python run.py -a


* To test the Wordplay installation: navigate to the Wordplay directory and run <code>words1.py</code>:
* To test the Wordplay installation: navigate to the Wordplay directory and run <code>words1.py</code>:
Line 113: Line 113:
  python words1.py
  python words1.py


* Walk through the Tutorial concept that was most confusing for you. The Tutorial is [[Community Data Science Workshops/Day 0 tutorial|here]].
* Walk through the Tutorial concept that was most confusing for you. The Tutorial is [[Community Data Science Workshops/Friday April 4th Tutorial|here]].


* Walk through the Codecademy problem that you had the most difficulty with. The Friday Codecademy questions are [http://www.codecademy.com/courses/python-beginner-en-kSQwt here].
* Walk through the Codecademy problem that you had the most difficulty with. The Friday Codecademy questions are [http://www.codecademy.com/courses/python-beginner-en-kSQwt here].
Line 128: Line 128:


[[File:Champagne.png|100px]][[File:Party.png|125px]]
[[File:Champagne.png|100px]][[File:Party.png|125px]]
[[Community Data Science Workshops|&laquo; Back to the Workshop home page]]
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see CommunityData: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!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)