Skip to content

Instantly share code, notes, and snippets.

@wwwins
Created December 14, 2018 10:08
Show Gist options
  • Save wwwins/dcb55ffda1138345387741136e149516 to your computer and use it in GitHub Desktop.
Save wwwins/dcb55ffda1138345387741136e149516 to your computer and use it in GitHub Desktop.
ipython tips
# load a python file
%load teeth-whitening.py
# setup sys args for argparse
sys.argv = ["teeth-whitening.py", "data/shape_predictor_68_face_landmarks.dat", "faces/Cara_Delevingne.png"]
# debug
%debug main()
ipdb> s
ipdb> n
ipdb> n
ipdb> n
...
ipdb> l
ipdb> p d
ipdb> pinfo d
ipdb> pinfo faces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment