[IPython-user] %psource

Flavio Coelho fccoelho at gmail.com
Mon Jan 8 14:35:53 CST 2007


I just found out about this great magic function, %psource

how does it work? if I want to use that functionality in a script of
mine how do I do it?

I also noted that if  I define a function:

def fun():
    print 'hi'

and then do

%psource fun

I get:
No source found for fun

what is happening here?

Flávio Codeço Coelho
registered Linux user # 386432
"Laws are like sausages. It's better not to see them being made."
Otto von Bismark

More information about the IPython-user mailing list