Fri Aug 21 13:48:55 CDT 2009
Yes - that would work if I were the only writer of these scripts.
We have people who are not (yet) skilled python programmers and
What I have is an embedded ipython in a wxPython program and the only way I
see at the moment is to hack IPython directly and put the try block you
On Fri, Aug 21, 2009 at 2:31 PM, David Warde-Farley <email@example.com>wrote:
> On 21-Aug-09, at 10:20 AM, Piotr Zolnierczuk wrote:
>> It would be nice if one could capture Ctrl-C with a custom handler.
>> We often run “long” (10-800 minutes long) scripts that take automate data
>> taking and users sometimes just want to stop them before they are finished.
>> The traceback dump, while colorful, often scares inexperienced users and
>> clutters unnecessarily the screen.
> while True:
> except KeyboardInterrupt:
> print "Caught Ctrl+C"
Piotr Adam Zolnierczuk
written on recycled electrons
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-user