[IPython-User] ctrl-C question
Wed Sep 7 19:56:13 CDT 2011
Are you on Windows? And if so, how are you launching IPython?
On Wed, Sep 7, 2011 at 17:53, Bago <firstname.lastname@example.org> wrote:
> this is enough to do it for me:
> from enthought.traits import api as t
> class foo(t.HasTraits):
> x = t.Int()
> f = foo()
> if I ctrl-C when the configure_traits window is open, or close out of it
> and hit ctrl-C ipython quits.
> On Wed, Sep 7, 2011 at 5:35 PM, Fernando Perez <email@example.com>wrote:
>> Hi Bago,
>> On Wed, Sep 7, 2011 at 5:08 PM, Bago <firstname.lastname@example.org> wrote:
>> > Hi all,
>> > Sorry if this issue has already been discussed, but I can't seem to
>> > find an answer on google. I have a nasty habit of using ctrl-C to clear
>> > the prompt when I've typed something and changed my mind or when
>> > something is taking longer than it should. When I'm using ipython with
>> > enthought traits, ctrl-C quits me out of ipython session. You can
>> > imagine how infuriating it is to hit ctrl-C and loose all my work. I
>> > realize that this problem is not unique to ipython but I'd appreciate
>> > any help you guys can offer.
>> Is the problem reproducible with a few lines of code that you can
>> provide? the following simple tests:
>> from enthought.traits import api as t
>> class foo(t.HasTraits):
>> x = t.Int()
>> f = foo()
>> run ~/scratch/sleeper.py # script that sleeps so I can Ctrl-C
>> don't seem to show the problem...
>> It's possible that traits is installing a signal handler in there that
>> you could override back, but I'd like to see some small example to
>> reproduce the problem.
> IPython-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User