[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launch/run IPython in emacs buffer

From: Andreas Röhler
Subject: Re: launch/run IPython in emacs buffer
Date: Fri, 01 Oct 2010 11:30:26 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv: Gecko/20100711 Thunderbird/3.0.6

Am 30.09.2010 14:46, schrieb Tom Roche:

I can run IPython in an emacs buffer, but would appreciate help with
either of 2 problems:

0 opening an IPython buffer "from anywhere." I can open IPython in an
   emacs buffer with the sequence


Ipython sends code to python.

From a common emacs buffer this was done by pymacs.
Didn't try it last times.

* open buffer on a python file, e.g. C-x C-f /tmp/
* C-c !

   This seems to work appropriately, e.g. M-p scrolls IPython history.

* I'd like also to be able to open an IPython buffer from anywhere (in
   emacs), since I often use IPython as a calculator and scratchpad.

* I don't know of an existing command or config that does this.

* I don't know enough elisp to do this.

   Hence I'd appreciate a pointer to an existing command or config, or
   some elisp (or both) that will open an IPython buffer from anywhere in

1 fix M-p in IPython in shell-mode. When I run IPython in emacs shell
   mode (i.e. running `ipython` from a prompt after running `M-x shell`),
   IPython runs (with correct prompt, thanks Andrew Wilson). But when I
   attempt to scroll IPython history (with M-p at the IPython prompt), I
   instead get bash history. Is there a way to make shell-mode pass the
   M-p event to IPython?

interesting point.

ipython has it's own user and devel list

maybe send your request here

also see




FWIW, I'm running

Ubuntu 10.04.1 LTS, GNOME, 64-bit
GNU Emacs from ubuntu package=emacs-snapshot
IPython 0.10 from ubuntu package
python-mode 5.1.0 from
Python 2.6.5 from ubuntu package

TIA, Tom Roche<>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]