Editing Community Data Science Workshops (Fall 2015)/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 1: Line 1:
Welcome to the first Friday evening setup session for [[Community_Data_Science_Workshops_(Fall_2015)]]!
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:
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. It should take between 2 and 3 hours. Lots of mentors will be around to 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 setup 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 tomorrow.
'''Please be sure to do the checkoff before you leave''' — it'll make sure that you are in good shape for tomorrow.
Line 32: Line 32:
In addition to being able to run Python, we are going to install a good text editor for writing and saving Python code during the workshop.<br />
In addition to being able to run Python, we are going to install a good text editor for writing and saving Python code during the workshop.<br />


If you would like to use a different text editor from the recommendation for your operating system, please let a mentor know.
If you would like to use a different text editor from the recommendation for your operating system, please let a staff member know.


* [[Windows text editor|Windows]]
* [[Windows text editor|Windows]]
Line 41: Line 41:
(Estimated time: 5 minutes)
(Estimated time: 5 minutes)


We'll do a lot of learning and practicing at a Python "prompt." You will be typing code and hitting enter to get Python to do something. When Python is waiting for us to type code to do something, we call that "interactive."  Later, we'll get Python to run code from a file. For now,  let's practice starting and exiting Python:
We'll do a lot of learning and practicing at a Python prompt (this is "interactive" because you are typing the code and hitting enter to run it yourself, instead of running it from a file). So let's practice starting and exiting Python:


* [[Windows interactive Python|Windows]]
* [[Windows interactive Python|Windows]]
Line 50: Line 50:
(Estimated time: 10 - 15 minutes)
(Estimated time: 10 - 15 minutes)


Throughout this workshop, we'll be running Python programs from the terminal, which means we'll want to be comfortable with navigating to those programs from the terminal prompt. In this section, we'll practice using these terminal navigation commands.
Throughout this workshop, we'll be running Python programs from the terminal, which means we'll want to be comfortable with navigating to those programs from the terminal prompt. In this section, we'll practice using these navigation commands.


* [[Windows terminal navigation|Windows]]
* [[Windows terminal navigation|Windows]]
Line 68: Line 68:
(Estimated time: 10 minutes)
(Estimated time: 10 minutes)


In advance of tomorrow's lecture and afternoon projects, go ahead and download the necessary files ahead of time.
* [[Community Data Science Workshops (Spring 2015)/April 10th Windows projects download|Windows]]
 
* [[Community Data Science Workshops (Spring 2015)/April 10th OSX projects download|OS X]]
<font size="+1">[[Community Data Science Workshops (Fall 2015)/Day 1 baby names project download|&raquo; Click here and follow the instructions to download the Baby Names project. &laquo;]]</font>


== Goal #7: Start learning Python! ==
== Goal #7: Start learning Python! ==
Line 78: Line 77:
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.
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_Workshops_(Fall 2015)/Day_0_tutorial| &raquo; Click here and work through tonight's tutorial &laquo;]]</div>
<div style="font-size:125%">[[Community_Data_Science_Workshops_(Spring 2015)/Day_0_tutorial| &raquo; Click here and work through tonight's tutorial &laquo;]]</div>
<br />
<br />


Line 97: Line 96:
== Goal #9: Checkoff ==
== Goal #9: Checkoff ==


Wave down a mentor when you're ready to check out for the evening. 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 exit 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>:
* To test the baby names project installation: navigate to the babynames directory and run <code>babynames1.py</code>:


<pre>
  python babynames1.py
  python babynames1.py
</pre>


* 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 122: Line 119:
[[File:Champagne.png|100px]][[File:Party.png|125px]]
[[File:Champagne.png|100px]][[File:Party.png|125px]]


[[Category:Fall_2015_series]]
[[Category:Spring_2015_series]]
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)