{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/nbconvert/issues/33","labels_url":"https://api.github.com/repos/jupyter/nbconvert/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/nbconvert/issues/33/comments","events_url":"https://api.github.com/repos/jupyter/nbconvert/issues/33/events","html_url":"https://github.com/jupyter/nbconvert/pull/33","id":87351587,"number":33,"title":"Add command line switch --abort-on-error to abort conversion if execution fails","user":{"login":"maxalbert","id":2692805,"avatar_url":"https://avatars.githubusercontent.com/u/2692805?v=3","gravatar_id":"","url":"https://api.github.com/users/maxalbert","html_url":"https://github.com/maxalbert","followers_url":"https://api.github.com/users/maxalbert/followers","following_url":"https://api.github.com/users/maxalbert/following{/other_user}","gists_url":"https://api.github.com/users/maxalbert/gists{/gist_id}","starred_url":"https://api.github.com/users/maxalbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxalbert/subscriptions","organizations_url":"https://api.github.com/users/maxalbert/orgs","repos_url":"https://api.github.com/users/maxalbert/repos","events_url":"https://api.github.com/users/maxalbert/events{/privacy}","received_events_url":"https://api.github.com/users/maxalbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-06-11T13:42:25Z","updated_at":"2015-06-16T22:24:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jupyter/nbconvert/pulls/33","html_url":"https://github.com/jupyter/nbconvert/pull/33","diff_url":"https://github.com/jupyter/nbconvert/pull/33.diff","patch_url":"https://github.com/jupyter/nbconvert/pull/33.patch"},"body":"This PR adds a command line switch `--abort-on-error`. When used in conjunction with `--execute` this will make `nbconvert` abort in case any of the cells raises an exception during execution.\r\n\r\nI have added a custom exception which captures the output of the notebook execution until the failure because we have a use case in our group where we need to be able to inspect this. The downside is that it makes the output somewhat noisy when `nbconvert` is used from the command line. Let me know your thoughts and whether you have any suggestions how this can be handled differently in case you think it is a problem. Thanks!"},"comment":{"url":"https://api.github.com/repos/jupyter/nbconvert/issues/comments/112587509","html_url":"https://github.com/jupyter/nbconvert/pull/33#issuecomment-112587509","issue_url":"https://api.github.com/repos/jupyter/nbconvert/issues/33","id":112587509,"user":{"login":"maxalbert","id":2692805,"avatar_url":"https://avatars.githubusercontent.com/u/2692805?v=3","gravatar_id":"","url":"https://api.github.com/users/maxalbert","html_url":"https://github.com/maxalbert","followers_url":"https://api.github.com/users/maxalbert/followers","following_url":"https://api.github.com/users/maxalbert/following{/other_user}","gists_url":"https://api.github.com/users/maxalbert/gists{/gist_id}","starred_url":"https://api.github.com/users/maxalbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxalbert/subscriptions","organizations_url":"https://api.github.com/users/maxalbert/orgs","repos_url":"https://api.github.com/users/maxalbert/repos","events_url":"https://api.github.com/users/maxalbert/events{/privacy}","received_events_url":"https://api.github.com/users/maxalbert/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T22:24:34Z","updated_at":"2015-06-16T22:24:34Z","body":"So, is the consensus to make \"abort-on-error\" the default behaviour? I'm happy to change the PR if that's the case. What should the name of the flag be? If we go with something along the line of @takluyver's suggestion, would it be ok to change it to `--on-error-continue-next-cell` to make it clearer what \"next\" means in this context? Any other suggestions, in case this is too verbose?"}}