An Emacs mode for editing Python code

python-mode Bug #909160 not fixed?

Asked by david cagle on 2012-12-31

I am experiencing the same problem as reported in Bug #909160 that was supposedly fixed. The ipython prompt "In [?]:" (? = line number) is not shown until exiting. (py-version "6.1.0") Here is a copy of the buffer (not I entered 3 math expressions (i.e. '1+1') without receiving a prompt, then received them once I exited the interpreter):

Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 0.13.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
1+1
Out[4]: 2
2+2
Out[5]: 4
3+3
Out[6]: 6
exit

In [1]:
In [2]:
In [3]:
In [4]:
In [5]:
In [6]:
In [7]:
Process c:/apps/python27/scripts/ipython.exe finished

Is this a known bug? Any work around?

Question information

Language:
English Edit question
Status:
Answered
For:
python-mode.el Edit question
Assignee:
No assignee Edit question
Last query:
2012-12-31
Last reply:
2013-01-01
Andreas Roehler (a-roehler) said : #1

As far as it concerns

File mode specification error: (void-variable py-mode-map)

that's fixed.

The prompt numbering issue results from communication between Emacs buffers and the IPython process.
Emacs sends setup codes to the Python process before any user input. Thus the Python process raises already the prompt stats. Would welcome a new bug report for this inconvenience.

Don't know why the initiatory prompts are shown when closing, seems OS related.

Andreas

Can you help with this problem?

Provide an answer of your own, or ask david cagle for more information if necessary.

To post a message you must log in.