Editing Community Data Science Workshops (Core)/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]]! | |||
Welcome to the first Friday evening setup session for | |||
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: | ||
Line 7: | Line 5: | ||
* 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. 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! | ||
* When you've finished all of the setup goals, raise your hand and a | * 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. | ||
'''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 15: | 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 | 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 == | ||
(Estimated time: 5 minutes | (Estimated time: 5 minutes) | ||
First things first: We need to install | 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 (Anaconda)|Windows]] | ||
Line 28: | Line 26: | ||
'''Note:''' If you are running GNU/Linux or another operating system, please contact a mentor for help! | '''Note:''' If you are running GNU/Linux or another operating system, please contact a mentor for help! | ||
== Goal #2: Practice running Python code from an existing notebook == | |||
(Estimated time: 5 minutes) | |||
( | Interactive Python programming at a Python prompt is great for short pieces of code and for testing ideas. For longer code, it can be easier to save the code in a file, and execute the contents of that file (aka a Python script). In this section, we'll practice running Python scripts. | ||
* [[Python scripts in Jupyter]] | |||
== Goal #3: Download the Saturday projects == | == Goal #3: Download the Saturday projects == | ||
Line 41: | Line 38: | ||
(Estimated time: 10 minutes) | (Estimated time: 10 minutes) | ||
In advance of tomorrow's lecture and afternoon projects, | In advance of tomorrow's lecture and afternoon projects, go ahead and download the necessary files ahead of time. | ||
<font size="+1">[[CDSW/Day_1_baby_names_project_download|» Click here and follow the instructions to download the Baby Names project. «]]</font> | <font size="+1">[[CDSW/Day_1_baby_names_project_download|» Click here and follow the instructions to download the Baby Names project. «]]</font> | ||
Line 54: | Line 51: | ||
<br /> | <br /> | ||
== Goal #5: Practice Python using | == Goal #5: Practice Python using Codecademy == | ||
(Estimated time: 30 - 60 minutes) | (Estimated time: 30 - 60 minutes) | ||
Line 60: | Line 57: | ||
It's time to use what we've learned in the tutorial and get some practice thinking about and solving problems in Python. | It's time to use what we've learned in the tutorial and get some practice thinking about and solving problems in Python. | ||
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. | |||
<div style="font-size:125%">[http://www.codecademy.com/courses/python-beginner-en-kSQwt » Click here and complete tonight's Codecademy exercises «]</div> | |||
You don't have to create a Codecademy account to do the exercises, but if you do create an account it'll keep track of which problems you've completed and other statistics. | |||
== Goal #6: Checkoff == | == Goal #6: Checkoff == | ||
Line 75: | Line 69: | ||
Wave down a mentor when you're ready to check out for the evening. Together you will go through the following check-off steps: | Wave down a mentor when you're ready to check out for the evening. Together you will go through the following check-off steps: | ||
* Start a terminal prompt, and from that prompt start Python. Then exit Python. | |||
* Start | * 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. | ||
* 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 | |||
* Walk through the | <pre> | ||
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]. | |||
If you have any other questions about the tutorial, project setup, or | If you have any other questions about the tutorial, project setup, or Codecademy questions, now is a great time to ask! | ||
==Congratulations!== | ==Congratulations!== | ||
You are done with the Friday portion of this Workshop. We'll see you at '''9:45am''' tomorrow. | 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! | '''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 | 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]] |