2012-06-25 41 views
0

您好,我最近下载了ipython 0.12.1 - 2012年4月,并得到它在Windows的终端下工作。即我打开命令提示符并键入ipython,然后出现ipython提示符。ipython下Emacs为WIndows挂壳

所有的好和丹迪直到我需要在emacs中使用它。因此,在尝试使用pyton-mode.el或ipython.el(它暂时冻结我的emacs)之前,我试着做一个M-x shell或M-x eshell 并输入ipython -i。

这是跟踪壳的完整挂起之前,我:

IPython的-i

Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] 
Type "copyright", "credits" or "license" for more information. 

IPython 0.12.1 -- An enhanced Interactive Python. 
?   -> Introduction and overview of IPython's features. 
%quickref -> Quick reference. 
help  -> Python's own help system. 
object? -> Details about 'object', use 'object??' for extra details. 
WARNING: Readline services not available or not loaded.WARNING: Proper color support under MS Windows requires the pyreadline library. 
You can find it at: 
http://ipython.org/pyreadline.html 
Gary's readline needs the ctypes module, from: 
http://starship.python.net/crew/theller/ctypes 
(Note that ctypes is already part of Python versions 2.5 and newer). 

Defaulting color scheme to 'NoColor' 

那么,为什么它在emacs的壳挂在一个普通的命令提示符工作。我需要更改我的默认emacs外壳吗?我也在两台不同的机器上尝试过。我错过了什么吗?

回答

0

显然,在Windows下这样做的唯一方法是创建一个批处理文件,尽管在0.12版本中存在一个可执行文件(ipython.exe)。我的脚本内容如下:

[ipython.bat] @ python.exe -i C:\ devel的\ Python的\ 2.7斌\脚本\ ipython-script.py --pylab%*

对于在Windows下matplotlib和numpy的用户,pylab选项仍然无法正常工作,因为它会冻结你的数字窗口。为了解决这个问题,我不得不恢复到ipython 0.10,并在ipython.bat脚本中使用-wthread选项而不是-pylab。这实际上产生了一个很好的互动图形环境

+0

好吧,我只想知道你是否找到解决方案? '我最近用ipython设置了我的emacs,并且有同样的问题,我的是emacs 24.3和ipython 13.1/13.2,谢谢! – shelper

+0

我在python-mode项目下打开了一个错误,但仍未分配。到目前为止,在Windows上我只是使用ipython 0.10,它工作正常。仍然没有得到它在ipython 0.13及以上的工作。在Linux和OS X上运行良好 – octi