[ ... ]
AFAIU :session is broken, because Python shell as opened by run-python or
py-shell isn't used by ob-babel.
Seems ob-babel sends it's code w/ an own shell command, thus opening a new
python shell internally every time.
Did :session ever work? Then I might be wrong with this comment.
Not only did it work, it currently works for me.
That's good news, so it might be fixed soon.
I seem to remember
bad interaction with python modes other than the one shipped with
emacs.
Shipping should not affect the code ;)
Well, if you feel disturbed by python-mode.el,
please file a bug-report at
https://bugs.launchpad.net/python-mode
python-mode.el prepares some keys and fontifying differently
but should not touch python.el commands.
In case it does, probably should change that...
Andreas
[ ... ]