[Numpy-discussion] Interrupting long running calculations ....
Fernando Perez
fperez.net@gmail....
Mon Aug 18 02:21:43 CDT 2008
On Mon, Aug 18, 2008 at 12:09 AM, Sebastian Haase <haase@msg.ucsf.edu> wrote:
> Another question, and not quite numpy specific, is how to generate
> this exception from another thread -- effectively "injecting" it into
> the calling stack !? I ask this, because I'm using wxPython, which
> makes things even more complicated .... :-(
>
An undocumented, unsupported, private hack is needed. Have a look at
shell.py in ipython, around line 291:
http://bazaar.launchpad.net/~ipython-dev/ipython/trunk/annotate/1107?file_id=shell.py-20080216095032-xb0is4a97lmosv2z-38
for how to do it.
Cheers,
f
More information about the Numpy-discussion
mailing list