Editing Intro to Programming and Data Science (Fall 2023)/Day 1 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 4: Line 4:




To get started, create a new Jupyter notebook file. Do this in VSCode by simply creating a new file in your class folder, with the extension `.ipynb`. For example, you might call it `day_1_tutorial.ipynb`.
To get started, fire up a new Jupyter notebook. Name it as you like.


As you go through this tutorial, any time you see something that looks like this:
[[File:Creating a python notebook in Jupyter.png|frame|From the Jupyter page, where you should look to create a python notebook!]]
 
This is an interactive tutorial! As you go through this tutorial, any time you see something that looks like this:


<syntaxhighlight lang="python">
<syntaxhighlight lang="python">
Line 12: Line 14:
</syntaxhighlight>
</syntaxhighlight>


you should type the expression in a new cell of your Jupyter notebook the `+ Code` button at the top, then hold Shift and hit Return (or Enter) after every line and check the output, making sure it matches your expectations. [https://code.visualstudio.com/docs/datascience/jupyter-notebooks This page] has a lot of great info about how Jupyter Notebooks work in VSCode.
you should type the expression in a new cell of your Jupyter notebook (found in the 'Insert' menu), then hold Shift and hit Return (or Enter) after every line and check the output, making sure it matches your expectations.


Unless otherwise noted, you should try not to copy and paste! You'll learn the concepts better if you type them out yourself.
Unless otherwise noted, you should try not to copy and paste! You'll learn the concepts better if you type them out yourself.
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)