##// END OF EJS Templates
All code startup related things are working....
All code startup related things are working. * Implemented 'ipython -c "a=10"' syntax. * Implemented 'ipython foo.ipy' syntax that handles both .py and .ipy. * Implemented -i flag that forces interactive if either of the above two are active. These things simulate how python itself handles these things.

File last commit:

r183:10a727b4
r2253:d0e3ce16
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