472,958 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

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 2614
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kenneth McDonald | last post by:
After looking around at various editors, I've finally decided on (I think :-) ) Vim for my future work. (jed is a great editor, but doesn't do neat things like allow me to write python code to add...
36
by: ChinStrap | last post by:
When not using the interactive prompt, what are you using? I keep hearing everyone say Emacs, but I can't understand it at all. I keep trying to learn and understand why so many seem to like it...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
0
by: madhusub | last post by:
Has anyone managed to get ipython within gnu emacs (21.3.1) working on Windows XP? I've the following versions of required software Python 2.4.1 IPython 0.6.15 python-mode.el (defconst...
0
by: Fernando Perez | last post by:
Hi all, The IPython team is happy to release version 0.7.2, with a lot of new enhancements, as well as many bug fixes. We hope you all enjoy it, and please report any problems as usual. ...
4
by: emin.shopper | last post by:
Emacs seems to freeze when doing certain shell commands on Microsoft Windows. The following is a simple example with Xemacs: ---------------------------------------------------------- ...
0
by: Ville Vainio | last post by:
Hi all, The IPython team is happy to release version 0.7.3, with a lot of new enhancements, as well as many bug fixes (including full Python 2.5 support). We hope you all enjoy it, and please...
0
by: Michele Simionato | last post by:
This should probably go to the IPython list, but since I am not subscribed I will try my luck here. Basically, I want to embed IPython inside a command line interpreter based on cmd.Cmd, in this...
0
by: Karlo Lozovina | last post by:
Hi all! I have a runTest() function inside my module, which sets up and initializes lots of objects and performs some basic tests on them. Usually (from IPython) I just write `run my_module.py`,...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.