0

Possible Duplicate:
Using magic commands outside of Interactive Shell in IPython

I know that Ipython is a powerful python shell. And when I input some shell commands, it works well. However, when I write the same shell commands in vim and run it in Ipython, there is 'SyntaxError'. For example,when I input ‘!ps’ in Ipython, it gives the right answer. However,When I write '!ps' in vim and run it in Ipython, it gives 'SyntaxError'. How can I run python scripts combined with some shell commands in Ipython?

Community
  • 1
  • 1
xiuxing
  • 1
  • 2

0 Answers0