簡體   English   中英

Emacs下用於Windows的ipython掛殼

[英]ipython under Emacs for WIndows hangs shell

嗨,我最近下載了ipython 0.12.1 – 2012年4月,並使其可以在Windows終端下運行。 即我打開命令提示符並鍵入ipython,然后出現ipython提示符。

一切順利,直到我需要在emacs中使用它為止。 因此,甚至在嘗試使用pyton-mode.el或ipython.el(此刻凍結了我的emacs)之前,我都嘗試過制作Mx shell或Mx 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 shell中並在常規命令提示符下工作。 我需要更改默認的emacs shell嗎? 我也在兩台不同的機器上嘗試過。 我想念什么嗎?

顯然,在Windows下執行此操作的唯一方法是創建一個批處理文件,即使在0.12發行版中存在一個可執行文件(ipython.exe)。 我的腳本內容如下:

[ipython.bat] @ python.exe -i C:\\ devel \\ Python \\ 2.7-bin \\ Scripts \\ ipython-script.py --pylab%*

對於Windows下的matplotlib和numpy的用戶,pylab選項仍然無法正常工作,因為它將凍結您的圖形窗口。 為了使它正常工作,我必須還原到ipython 0.10並在ipython.bat腳本中使用-wthread選項而不是-pylab。 這實際上產生了一個很好的交互式圖形環境

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM