问题
Let's say I accidentally evaluate an enormous variable--a list with a ba-jillion elements, or whatever. As they scroll down my screen and my computer crawls to a halt, is there a good way to interrupt this without killing my *Python* buffer? I'm using IPython via python-mode.el and ipython.el in emacs24 on Mac OS X Leopard--
Thoughts appreciated, a.
回答1:
I usually C-c until it stops... and it usually works...
回答2:
you could file a feature request at
http://launchpad.net/python-mode
asking for a way how to limit the output displayed
Dunno if its possible, resp. how difficult to implement.
来源:https://stackoverflow.com/questions/6637219/how-can-i-interrupt-the-ipython-interpreter-as-opened-in-emacs