##// END OF EJS Templates
Changed %hist to default to NOT printing numbers, added -p and -o options....
Changed %hist to default to NOT printing numbers, added -p and -o options. -p: print python prompts before inputs -o: print output as well Together, these two make '%hist -op' an easy way to get doctest-valid sessions generated from prior input.

File last commit:

r183:10a727b4
r2441:0da36568
Show More
test_autocall.ipy
24 lines | 196 B | text/plain | TextLexer
def f1(a,b,c):
return a+b+c
def f2(a):
return a + a
;f2 a b c
assert _ == "a b ca b c"
,f1 a b c
assert _ == 'abc'
print _
/f1 1,2,3
assert _ == 6
/f2 4
assert _ == 8
del f1
del f2