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:
{{Template:CDSW Header}}
Welcome to the first Friday evening setup session for the [[Community_Data_Science_Workshops |Community Data Science Workshop Winter 2020]]!
Welcome to the first Friday evening setup session for the [[Community_Data_Science_Workshops |Community Data Science Workshop Winter 2020]]!


Line 17: Line 15:
If you are not from UW, you will have to use a temporary shared NetID which we have created for the conference and which we will have written on the whiteboards/blackboard in each rooms. 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 and which we will have written on the whiteboards/blackboard in each rooms. 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 and make a folder for CDSW files ==
== Goal #1: Set up Python ==


(Estimated time: 5 minutes...if it takes more than 10 minutes, check in with a mentor to see if it's still installing properly)
(Estimated time: 5 minutes...if it takes more than 10 minutes, check in with a mentor to see if it's still installing properly)
Line 27: Line 25:


'''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!
* Go ahead and make a folder to use for your CDSW files. A dedicated folder will help you keep track of all the items you download or write as part of the workshop, and make them easier to find later. One of the secrets of data science is being kind to your future self by being extremely organized.


== Goal #2: Practice running Python code from an existing Jupyter notebook ==
== Goal #2: Practice running Python code from an existing Jupyter notebook ==
Line 60: Line 56:
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.


<div style="font-size:125%">[https://learnpython.org/ &raquo; Click here and complete the first two lessons on Learnpython &laquo;]</div>
<div style="font-size:125%">[https://learnpython.org/ &raquo; Click here and complete the two lessons on Learnpython &laquo;]</div>


Your next task is to work through '''the first two lessons''' (there are ''many'' lessons, so don't just keep hit "Next" or you're never finish!):
To give you this practice, please work through '''the first two exercises''' in the following Internet tutorial series called LearnPython (there are ''many'' lessons, so don't just keep hit "Next" or you're never finish!):


* [https://www.learnpython.org/en/Hello%2C_World%21 Hello, World]
* [https://www.learnpython.org/en/Hello%2C_World%21 Hello, World]
Line 68: Line 64:


<!-- If you feel adventurous, go ahead and learn about lists -- they'll be really useful later! -->
<!-- If you feel adventurous, go ahead and learn about lists -- they'll be really useful later! -->
You may find the LearnPython interface is different from your Jupyter Notebook. No worries, it's still Python, even though it looks a bit different. You could do these lessons in Jupyter Notebook by copying & pasting the code in the left-hand boxes from LearnPython into Jupyter Notebook cells and run them from Jupyter.


== 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:


* Show off your dedicated folder of CDSW files.
* Start Jupyter and make sure the home page loads.
* Start Jupyter and make sure the home page loads.
* Navigate to the desktop (in Jupyter!) and create a new Jupyter notebook.
* Navigate to the desktop (in Jupyter!) and create a new jupyter notebook.
* In that notebook, type: <code>print("Hello World")</code> and then Shift-Enter to run the command.
* In that notebook, type: <code>print("Hello World")</code> and then Shift-Enter to run the command.
* To test the baby names project installation: navigate to the babynames directory, load the notebook called "BabyNames.ipynb" and run the first cell. If you get no output, then you have done it correctly!
* To test the baby names project installation: navigate to the babynames directory, load the notebook called "BabyNames.ipynb" and run the first cell. If you get no output, then you have done it correctly!
* Walk through the LearnPython exercise that you had the most difficulty with.
* Walk through the LearnPython exercise that you had the most difficulty with.
* Exit out of Jupyter (by ending the processes via Control + C in Terminal or PowerShell, then hit 'y' and 'enter', within 5 seconds)
* Tell your mentor if there any topics you'd like to learn more about or projects you have in mind. We're going to compare notes after this setup session and would find this information helpful.
* Tell your mentor if there any topics you'd like to learn more about or projects you have in mind. We're going to compare notes after this setup session and would find this information helpful.


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)

Template used on this page: