Does ipython have a setting similar to ‘-e’ in bash that stops the execution of the script if any ipython’s shell command returns a non-zero value?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not directly, no. However, after a
!fooshell command, the exit code is stored as the value_exit_code. So your script could check that and throw an error.For some reason, on my system it multiplies all the exit codes by 256. I’m not at all sure why it’s doing that.