[IPython-User] stop running cell by conditon

Chao YUE chaoyuejoy@gmail....
Mon Sep 16 16:02:09 CDT 2013

Hi all there,

thanks a lot for you guys all the suggestions. Yes, I have the "Run All
Above" because I am using ipython 1.0
The idea for this question is indeed that I want a cleaner screen when some
exceptions are intended to be

The strange thing is that none of the cases raised by you works for me. It
seems that
any exeption will work when the exception is raised as the LAST exception
of the notebook cells,
but if it's placed in the middle, it doesn't work. The exception itself
will be raised but all the following
cells will be executed as well.

No bother anymore please, not a huge useful user case anyway. But thanks to



On Mon, Sep 16, 2013 at 7:56 PM, Paul Hobson <pmhobson@gmail.com> wrote:

> On Mon, Sep 16, 2013 at 10:04 AM, Jon Wilson <jsw@fnal.gov> wrote:
>>  I often use
>> assert False
>> in a cell when I don't want "Run all cells" to continue past that point.
>> This doesn't give a very informative error message, of course, but it gets
>> the job done.
>> Regards,
>> Jon
> To this end, the latest version of the Notebook has a "Run All Above" item
> in the Cells menu. (Just FYI). There's also "Run All Below".
> -p
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user

Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20130916/4323e629/attachment.html 

More information about the IPython-User mailing list