468,317 Members | 1,522 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,317 developers. It's quick & easy.

Re_: Best way to run ipython inside of emacs shell?

> Hi,

Equis Uno wrote:
I use meta-x shell to start a shell and then once I see a shell
prompt I enter the python command and I get a well-behaved python
shell inside of emacs.

I'm trying to figure out the best way to run ipython inside of emacs.


I had the same problem. It has to do with ipython.el not finding the
IPython executable.

To fix it, open ipython.el, and replace line
(when (executable-find "ipython")
with
(when (executable-find "ipython.bat")

Next, add file ipython.bat to your path containing something like the
following:
C:\Python23\python.exe "C:\Program Files\IPython\IPython_shell.py"

Unfortunately it doesn't seem to work right on windows. The prompts
are missing so it's almost unusable.

Yaroslav
Jul 18 '05 #1
1 2447
Yaroslav Bulatov wrote:
Equis Uno wrote:
> I use meta-x shell to start a shell and then once I see a shell
> prompt I enter the python command and I get a well-behaved python
> shell inside of emacs.
>
> I'm trying to figure out the best way to run ipython inside of emacs.


I had the same problem. It has to do with ipython.el not finding the
IPython executable.

To fix it, open ipython.el, and replace line
(when (executable-find "ipython")
with
(when (executable-find "ipython.bat")

Next, add file ipython.bat to your path containing something like the
following:
C:\Python23\python.exe "C:\Program Files\IPython\IPython_shell.py"

Unfortunately it doesn't seem to work right on windows. The prompts
are missing so it's almost unusable.


Are you having this problem with the emacs support stuff currently available
from the ipython site? There's a special python-mode.el in there which is
different from the default one shipped with emacs (because the maintainers have
ignored Alex Schmolck's patches for a long time).

That might help (or not, I have no way of testing under windows, though I know
it works ok in unix).

Best,

f
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Kenneth McDonald | last post: by
36 posts views Thread by ChinStrap | last post: by
reply views Thread by madhusub | last post: by
reply views Thread by Fernando Perez | last post: by
4 posts views Thread by emin.shopper | last post: by
reply views Thread by Ville Vainio | last post: by
reply views Thread by Michele Simionato | last post: by
reply views Thread by Karlo Lozovina | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by howard w | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.