How to start a Python ipython shell, automatically run inside it a few commands, and leave it open?

Posted by Gj on Stack Overflow See other posts from Stack Overflow or by Gj
Published on 2010-06-14T04:51:26Z Indexed on 2010/06/14 5:02 UTC
Read the original article Hit count: 185

Filed under:
|
|
|

I tried

echo "print 'hello'" | ipython

Which runs the command but ipython immediately exits afterwards.

Any ideas? Thanks!

© Stack Overflow or respective owner

Related posts about python

Related posts about bash