[IPython-user] Anyone using ipython.el?

Richard Everson R.M.Everson@exeter.ac...
Sat Sep 13 09:00:02 CDT 2008


Hi Rohan,

I use ipython under emacs daily.

My versions are:

python-mode.el:   (defconst py-version "$Revision: 4.75 $"
   "`python-mode' version number.")

ipython.el:     (defconst ipython-version "$Revision: 2927 $"
   "VC version number.")

This is the ipython.el at http://ipython.scipy.org/dist/ipython.el

I've been using ipython 0.8.4 and python 2.5.1, but I've just tried  
ipython-0.9.rc1 which seems to work without any difficulties.


This is with GNU Emacs 22.2.50.1 (i386-apple-darwin9.4.0, Carbon  
Version 1.6.0) of 2008-07-17, but I've used it on other Emacs (but not  
XEmacs) versions (including one of the 23 snapshots) under Linux  
without any changes.


The relevant bits of my emacs startup are from Alex Schmolck who wrote  
ipython.el:

(require 'comint)
(define-key comint-mode-map [(meta p)]
   'comint-previous-matching-input-from-input)
(define-key comint-mode-map [(meta n)]
   'comint-next-matching-input-from-input)
(define-key comint-mode-map [(control meta n)]
    'comint-next-input)
(define-key comint-mode-map [(control meta p)]
    'comint-previous-input)

(setq comint-completion-autolist t	;list possibilities on partial
					;completion
       comint-completion-recexact nil	;use shortest compl. if
					;characters cannot be added
       ;; how many history items are stored in comint-buffers (e.g. py- 
shell)
       ;; use the HISTSIZE environment variable that shells use (if  
avail.)
       ;; (default is 32)
       comint-input-ring-size (string-to-number (or (getenv  
"HISTSIZE") "100")))


(add-to-list 'interpreter-mode-alist '("python" . python-mode))
(require 'ipython)
(setq py-python-command-args '("-pylab" "-colors" "LightBG"))


On 12 Sep 2008, at 15:24, Rohan Nicholls wrote:

> Thanks for this.
>
> I have looked into python-mode but it seems to require pymacs which
> seems a rather heavy dependency, and not one I am sure I want to
> embrace, especially as a quick glance at aptitude shows that the last
> python in the packaged version it supports is python2.3.  How did you
> get it working?  Install pymacs yourself?

pymacs isn't needed for python-mode so far as I can tell.  They're  
distributed together, but that's all.


Hope this is useful.

Richard.



More information about the IPython-user mailing list