One option would be raise an exception in a new cell above your tester cell.

Another option would be to a variable defined in the notebooks first cell (
TESTING=False). You can then wrap your tests in an if testing: block,
setting testing to True if you actually want them to run.

On Wed, Feb 15, 2017 at 12:11 PM, John Marino <[email protected]>
wrote:

> As I develop a notebook, I like to store tester code down at the bottom.
> But this means I can't Run All or Run All Below without the tester code
> running.  (Yes, I can scroll down and Run All Above.)  Is there something I
> can enter into a cell that would keep the notebook from continuing to run
> cells?  I don't want to halt the kernel or interrupt what is running (i.e.
> I don't want an exception thrown).  I'm thinking a magic, e.g. %stop, would
> do the trick.  (I looked at the existing magics, but didn't find anything
> like this.)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/75cbcc60-69d6-4bc3-bccc-70dfce541c40%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/75cbcc60-69d6-4bc3-bccc-70dfce541c40%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CADT3MEBBJptE6S%3D6AgnVH6dt0VAy8d2bE9%3DT0B4V1bo19xEiqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to