0

How can I launch the command that begins with $ in Canopy iPython ? I am using Windows 7.

It seems such a trivial question but I tried to find an answer by googling every possible version of my question without coming close to an answer. Yet websites tutorials on iPython often ask you to enter something on a line like that.

I have no trouble with the interpreter which uses numerical in/out prompts like

In [23]:
Out [24]:
4

2 回答 2

1

If I am correct, the $ is not an IPython prompt. It is a shell prompt. Basically, the commands entered at that prompt are not IPython commands, but are commands that you enter at your terminal/command prompt. Linux distros and OSX call it the Terminal, BSD, the XTerm, and Windows, the Command Prompt.

EDIT: Since you are using Windows 7, you would use the Command Prompt. Some UNIX commands, like grep and awk, are UNIX-only but available for Windows using things like GNUWin. Others, like cat, have their own Command Prompt alternatives, like type.

于 2013-04-20T20:58:57.673 回答
0

在 Canopy 编辑器中,您还可以使用感叹号 ! 开始一行:

在 [1] !蟒蛇

思考 Canopy Python 2.7.6 | 64 位 | (默认,2014 年 9 月 15 日,17:43:19)[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin 键入“帮助”、“版权”、“信用”或“许可”以获取更多信息信息。

于 2015-09-27T16:54:09.903 回答