简体   繁体   中英

Emacs python echo command with elpy

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的

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM