Editing Community Data Science Course (Spring 2015)/Day 1 Exercise

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 1: Line 1:
For the exercises tonight, please do the following things:
Welcome to the first Friday evening setup session for [[Community Data Science Workshops]]!
 
When you get to UW and get setup, please do the following things:


* Start your laptop and get on the wireless network.
* Start your laptop and get on the wireless network.
* Work through the goals on this page in order; they should take around 2 hours. William and I will help troubleshoot and to answer questions — don't hesitate to ask!
* Work through the goals on this page in order; they should take between 2 and 3 hours. Lots of staff will be around to help troubleshoot and to answer questions — don't hesitate to ask!
* When you've finished all of the goals, raise your hand and a helper will come over and go through a checklist with you to make sure you're all set for tomorrow.
* When you've finished all of the goal, raise your hand and a helper will come over and go through a checklist with you to make sure you're all set for tomorrow.


'''Please be sure to do the checkoff before you leave''' — it'll make sure that you are in good shape for next week.
'''Please be sure to do the checkoff before you leave''' — it'll make sure that you are in good shape for tomorrow.


== Goal #0: Connect to the UW Wireless ==
== Goal #0: Connect to the UW Wireless ==


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].


== Goal #1: Set up Python ==
== Goal #1: Set up Python ==
Line 19: Line 23:
* [[Windows set up Python (Anaconda)|Windows]]  
* [[Windows set up Python (Anaconda)|Windows]]  
* [[OSX set up Python (Anaconda)|OS X]]
* [[OSX set up Python (Anaconda)|OS X]]
* [[Linux set up Python (Anaconda)|Linux]]


== Goal #2: Prepare a text editor ==
== Goal #2: Prepare a text editor ==
Line 30: Line 35:
* [[Windows text editor|Windows]]
* [[Windows text editor|Windows]]
* [[OSX text editor|OS X]]
* [[OSX text editor|OS X]]
* [[Linux text editor|Linux]]


== Goal #3: Practice starting and exiting Python ==
== Goal #3: Practice starting and exiting Python ==
Line 39: Line 45:
* [[Windows interactive Python|Windows]]
* [[Windows interactive Python|Windows]]
* [[OSX interactive Python|OS X]]
* [[OSX interactive Python|OS X]]
* [[Linux interactive Python|Linux]]


== Goal #4: Practice navigating the computer from a terminal ==
== Goal #4: Practice navigating the computer from a terminal ==
Line 48: Line 55:
* [[Windows terminal navigation|Windows]]
* [[Windows terminal navigation|Windows]]
* [[OSX terminal navigation|OS X]]
* [[OSX terminal navigation|OS X]]
* [[Linux terminal navigation|Linux]]


== Goal #5: Practice running Python code from a file ==
== Goal #5: Practice running Python code from a file ==
Line 57: Line 65:
* [[Windows Python scripts|Windows]]
* [[Windows Python scripts|Windows]]
* [[OSX Python scripts|OS X]]
* [[OSX Python scripts|OS X]]
* [[Linux Python scripts|Linux]]
== Goal #6: Download the Saturday projects ==
(Estimated time: 10 minutes)
* [[Community Data Science Workshops (Fall 2014)/November 7th Windows projects download|Windows]]
* [[Community Data Science Workshops (Fall 2014)/November 7th OSX projects download|OS X]]
* [[Community Data Science Workshops (Fall 2014)/November 7th Linux projects download|Linux]]


== Goal #7: Start learning Python! ==
== Goal #7: Start learning Python! ==
Line 62: Line 79:
(Estimated time: 60 - 90 minutes)
(Estimated time: 60 - 90 minutes)


It's time to start learning, reading, and writing some Python! Tonight, you'll work through a self-directed tutorial. Next week, we'll have an interactive lecture to cover more Python basics.
It's time to start learning, reading, and writing some Python! Tonight, you'll work through a self-directed tutorial. Saturday morning, we'll have an interactive lecture to cover more Python basics.


<div style="font-size:125%">[[Community Data Science Course (Spring 2015)/Day 1 Tutorial|&raquo; Click here and work through tonight's tutorial &laquo;]]</div>
<div style="font-size:125%">[[Community_Data_Science_Workshops_(Fall_2014)/Day_0_tutorial| &raquo; Click here and work through tonight's tutorial &laquo;]]</div>
<br />


== Goal #8: Practice Python using Codecademy ==
== Goal #8: Practice Python using Codecademy ==
Line 82: Line 100:
== Goal #9: Checkoff ==
== Goal #9: Checkoff ==


Tell a member of the teaching team that you are ready to be checked off. Together you will go through the following check-off steps:
Tell a staff member that you are ready to be checked off. Together you will go through the following check-off steps:


* Start a terminal prompt, and from that prompt start Python. Then quit Python.
* Start a terminal prompt, and from that prompt start Python. Then quit Python.
* 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>:
python babynames1.py
* To test the Wordplay installation: navigate to the Wordplay directory and run <code>words1.py</code>:
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/Day 0 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 94: Line 121:
==Congratulations!==
==Congratulations!==


You are done with the first class in this series!
You are done with the Friday portion of this Workshop. We'll see you at '''9:45am''' tomorrow back here.
 
'''DO NOT BE LATE''': you don't want to miss the beginning of the interactive lecture!
 
If you have any questions, comments, or feedback on tonight's material, don't hesitate to let a staff member know.


[[File:Champagne.png|100px]][[File:Party.png|125px]]
[[File:Champagne.png|100px]][[File:Party.png|125px]]
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)