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


I tried

  echo "printing" hello '' | Ipython  

which runs the command but the Imitium immediately comes out later.

Any thoughts? Thanks!

Edit: I need to actually pass the order in the interactive Django shell, for example:

  resonance "print" Hello '| Python manage.py shell]  

The suggested -i switch does not seem to work for Gmail (the shell just runs out of execution)

Use the same flag used by standard interpreter.

-i < / Code>

when viewing a script Li is passed as a logic or the -c option is used, after executing the script or command, enter the interactive mode, even when the sys.stdin terminal does not appear, the PYTHONSTARTUP file is not read.

Using a Linux instance,:

  $ ipython -i -c 'print' hello, ipithon! '' Hello, in the ipathon! [2] : Print "right here" here [3]:  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -