##// END OF EJS Templates
Switch scripts cell magic default to raise if error happens....
Matthias Bussonnier -
Show More
@@ -0,0 +1,4 b''
1 The ``%%script`` (as well as ``%%bash``, ``ruby``... ) cell magic no raise by
2 default if the return code of the given code is non-zero (this halting execution
3 of further cells in a notebook). The behavior can be disable by passing the
4 ``--no-raise-error`` flag.
@@ -55,7 +55,7 b' def script_args(f):'
55 """
55 """
56 ),
56 ),
57 magic_arguments.argument(
57 magic_arguments.argument(
58 '--raise-error', action="store_true",
58 '--no-raise-error', action="store_false", dest='raise_error',
59 help="""Whether you should raise an error message in addition to
59 help="""Whether you should raise an error message in addition to
60 a stream on stderr if you get a nonzero exit code.
60 a stream on stderr if you get a nonzero exit code.
61 """
61 """
General Comments 0
You need to be logged in to leave comments. Login now