Rcjp’s Weblog

python

.pdbrc

#Print instance variables (usage "pi classInst")
alias pi for k in %1.__dict__.keys(): print "%1.",k,"=",%1.__dict__[k]

#Print instance variables in self
alias ps pi self
alias jj print previous,'', line


.ipython/ipy_user_conf.py

Use ils to get a directory browser (just like the old DOS l.com) and make spaces appear as spaces, not dots.

import IPython.ipapi
ip = IPython.ipapi.get()
IPython.ipapi.get().ex("from ipipe import *")
IPython.ipapi.get().ex("ibrowse.datapadchar = ' '")


No Comments Yet »

No comments yet.

RSS feed for comments on this post.

Leave a comment

Blog at WordPress.com.