[BangPypers] Favorite tips/techniques
Shabda Raaj
shabda at agiliq.com
Tue Sep 10 15:53:30 CEST 2013
> I personally like to use IPython.
> To see all variables, constants, modules.
Ipython is amazing. To see a library code, I jsut tab-out lib_name.__file__
and then
!vim paste_the_file_path
Going to add something like anand's pyvi to ipy_user_conf.py.
Ipython with treat anything after bang(!) as a shell command to never felt
the need till now.
Related: You can get a ipython shell within your django runserver's
from IPython.Shell import IPShellEmbed
ipython = IPShellEmbed()
http://agiliq.com/blog/2009/12/using-bpython-shell-with-django-and-some-ipython-f/
I also like to debug with ipdb (rather than the pdb). Add this to your
Django views.
import ipdb; ipdb.set_trace() and debug away.
More information about the BangPypers
mailing list