2

I am using elpy to run python in emacs. When I press C-RET on a command in myfile.py, it prints the output of that command to the python shell below.

Is it possible for it to print 1+2 before printing the response 3? I think it would be a bit easier to track my shell output that way.

emacs

Hatshepsut
  • 5,962
  • 8
  • 44
  • 80

1 Answers1

0

Assume a way to go would be advicing the commands which send the code. When python-shell-send-region takes "beg" and "end", advice could take that region into a print(...) before.

Andreas Röhler
  • 4,804
  • 14
  • 18