7.12 slide deck record AND screencast of demonstrating Flake8 and black
7.15 slide deck record
7.18 Mini screencast of debugger
EXPLAINED
Slide deck 7.1
[ ] 7.1 Just going through the slide deck (this is a short one with only 5 slides)
Slide deck 7.12
[ ] First record yourself going through the first few slides of this deck. You can then pause or stop before doing a screen recording in Jupyter to demonstrate flake8 and pep8
[ ] Go over the the style guides we discussed (I am going to copy and paste below)
Please teach them calling Flake8 and black within the Jupyter notebook in a python cell with the command
In a Jupyter notebook check for all the "grammar" mistakes using
!flake8 filename.py
Next show them the tool black and how it follows a slightly different styling guide.
This tool can directly change and format your code using
!black filename.py
Note that you may need to explain flake8 takes a very specific file path (in the assignment it required the code:
!flake8 /home/jupyter/source/assignment7/sampling.py
Show them the code that's been changed with black formatting
Explain that since pep8 and black follow different style guides, if we rerun flake8, there still may be code that isn't being formatted by the black style.
To use the black Jupyter extension -> just right click the cell and you'll see format cell
Slide deck 7.15
[ ] This just requires you to read through the slides as is.
Slide deck 7.18
[ ] Please just include the tiniest of sections on the Python debugger
IN SHORT:
EXPLAINED
Slide deck 7.1
Slide deck 7.12
[ ] Go over the the style guides we discussed (I am going to copy and paste below)
Please teach them calling Flake8 and black within the Jupyter notebook in a python cell with the command
Formatting with Flake8 and Black
black
and how it follows a slightly different styling guide.Note that you may need to explain flake8 takes a very specific file path (in the assignment it required the code:
!flake8 /home/jupyter/source/assignment7/sampling.py
black
style.To use the black Jupyter extension -> just right click the cell and you'll see format cell
Slide deck 7.15
Slide deck 7.18
breakpoint()
and nothing in the assignment so it can really be very LIGHT