[IPython-user] Still trying to use pysh not-interactively

Florian Lindner mailinglists@xgm...
Sun Mar 21 07:39:54 CDT 2010


I want to use the convenient features of the pysh mode (SLists, executing with !) in a non-interactive script. However I don't figure out how to do so...

import IPython.ipapi
ip = IPython.ipapi.get()
print a

executes ls but a is None after wards. Additionally ipython displays its welcome message and exits to it own prompt.

import ipy_profile_sh

gives an syntax error.

All I want to do is to use the ipython -profile sh in a script. Any way to do that?



More information about the IPython-user mailing list