Our plan for the day:
python
is a programming language py
files are text files that exclusively contain python code. .py
files can not show results - you have to output any graphs or tables to new files. That last feature is a bummer. There must be a better way!
Enter notebook files!
.ipynb
("notebook") files mix python code with formatted markdown text and the output from code!The result: → better analysis! ("reproducible, reusable, and shareable")
And Jupyter Lab is how we will make our Jupyter notebooks.
Since we are working, let's put the Github workflow into practice:
Now we are ready to work!
Before each class starts, you should have already
And at the end of each class,
To open Jupyter Lab:
jupyter lab
and hit enterjupyter lab
and hit enterOK, what are we looking at?
Now, let me give you a little tour (just watch me!)
I'll cover...
Then, in the "Module 1 Notes" file:
print("Hello world!")
(don't forget both quote marks or parentheses)Let's get our hands dirty(er)!
Breakout rooms:
Start at step 3 of the exercise file
Before each class starts, you should have already
And at the end of each class, (do these now!)
Code must run from beginning to end and produce the same thing every time
Stuck?
Over the weekend: