In emacs, I use ipython in the inferior python mode with config:

(setq python-shell-interpreter "ipython"
    python-shell-interpreter-args "--simple-prompt -i")

When I edit my .py file, without any input to inferior python, the input number jumps occasionally.

Strange input number I suspect that I send some unintentional inputs to the inferior python. But, I don't know how. It happens quite randomly.

1 Answer 1


Completion and other features of the python mode require communication between emacs and the ipython process. This communication is achieved by sending code to the interactive ipython inferior shell. These are probably the "unintentional inputs" you are sending.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.