[IPython-user] IPython output under WindowsXP / Emacs / ipython.el

jietang jietang86@gmail....
Mon Mar 3 01:36:11 CST 2008


apologies if this gets sent out twice, I sent it from the
wrong address the first time.


Hi,

I just started playing around with IPython a few days ago.
It's been fun; I'm not sure how I managed with the
vanilla python shell for so long.

I've been trying to get IPython working under Gnu Emacs
22.1 on WindowsXP. I got python-mode and ipython.el
loaded alright following the instructions on the IPython
site, to the point where I can call M-x py-shell from a .py
file and have a colored IPython prompt show up inside
Emacs.

However, I can't get any output to show up. When I type
commands I never see an Out [#]: echoed to me.
If I type something like sys? at the prompt, I won't get
the sys help text but I will see helpful UI text i.e.
---return to continue, q to quit---
---return to continue, q to quit---
...
each time I press enter.

I can, however, make calls to print just fine: so if I run
print Out[#]
at the prompt I can examine the contents of the output
cache after commands have been executed.

So it seems like everything is working fine behind the
scenes but somewhere the output is getting lost. So,
I went and added a hook to the comint-output-filters-hook
in Emacs to show all the output that emacs receives
from any external process.

When I check the log I see the In[] prompts being sent
(with some color codes), but it looks like the Out[]
prompts, the help text, and the IPython startup banner
are not being received by Emacs.

Has anyone run into similar issues? How is the output
from commands sent to the terminal (and is it different
from the way the "In [#]:" prompts get sent)?


Thanks,


Jie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ipython.scipy.org/pipermail/ipython-user/attachments/20080303/f681cdf9/attachment-0001.html 


More information about the IPython-user mailing list