2012-06-25 89 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