[IPython-user] problem with emacs-server (V23)
Thu Feb 26 03:50:34 CST 2009
I unfortunately have no experience with your problem, as I run
everything inside emacs, including ipython and any webserver I might
If you search the archives there was a discussion about getting setup,
but a quick summary, and what I am using:
python-mode - the old one not the standard that comes with emacs
ipython.el - run ipython as your python shell
pymacs - allows for interoperability between python and elisp code
rope - refactoring (ide abilities) library for python
ropemacs - the emacs front-end for rope
And what you have is a really great environment. Things that I will
hack up if I find time are:
- easy breakpoint setting from a python buffer in emacs in the
running ipython session. (ideally with some indicator in the buffer itself),
much like you have with wing where you click on the right margin of
the line to set a breakpoint, except something more keyboard
- run my webserver while retaining the interactive prompt, I have
this almost working, with huge help from the ipython mailing list.
Anyway, if you want my settings, let me know and I will post them, but
I believe I have done that previously to the mailing list, so a search
might be a lot faster.
Hope this helps, although it does not answer your question.
On Wed, Feb 25, 2009 at 4:21 PM, Gour <email@example.com> wrote:
> I'm (i)python newbie which wants to learn python and use it for Django
> So far, I'm very impressed with ipython - read several articles, watched
> 5-part videos, skimmed over docs...
> I've pymacs/ropemacs installed along with ipython.el, but would like to
> use 'edit' magic from ipython.
> However, no matter what I do, ipython's edit invokes another (new)
> instance of Emacs despite running Emacs with 'server-start'.
> By rading docs: "If you are a dedicated Emacs user, you should set up the
> Emacs server so that new requests are handled by the original
> process. This means that almost no time is spent in handling the request
> (assuming an Emacs process is already running). For this to work, you
> need to set your EDITOR environment variable to ‘emacsclient’, I assume
> that ipython should use running server, right?
> I tried with this snippet:
> (defvar server-buffer-clients)
> (when (and (fboundp 'server-start) (string-equal (getenv "TERM") 'dumb))
> (defun fp-kill-server-with-buffer-routine ()
> (and server-buffer-clients (server-done)))
> (add-hook 'kill-buffer-hook 'fp-kill-server-with-buffer-routine))
> but to no avail :-/
> * I put 'dumb' instead of 'xterm' 'cause I've that in my .zshrc to
> handle zsh/tramp.
> I'm running emacs-23, but tried with emacs-22.x and it is the same
> Any hint?
> Gour | Zagreb, Croatia | GPG key: C6E7162D
> IPython-user mailing list
More information about the IPython-user