Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only allow specific errors in notebooks #121

Open
ageorgou opened this issue Sep 25, 2018 · 0 comments
Open

Only allow specific errors in notebooks #121

ageorgou opened this issue Sep 25, 2018 · 0 comments
Labels
2018-19 Issues raised ahead of/during the 2018-19 teaching year

Comments

@ageorgou
Copy link
Contributor

ageorgou commented Sep 25, 2018

Some of the notebooks contain cells that intentionally cause errors, which breaks the execution. We are currently running nbconvert --allow-errors to continue the conversion after an error occurs, but this means we are potentially letting other errors through without noticing (there doesn't seem to be a way to get all the errors raised).

Version 5.4 of nbconvert has support for the raises-exception tag, which lets you specify that a particular cell is expected to produce an error, and shouldn't stop the conversion if an exception is raised (there is an issue open for the inverse, requiring that the cell produces the error, and stopping the conversion if it doesn't). If we use that, then we should be able to just run nbconvert and only accept the errors we have put there intentionally.

@ageorgou ageorgou added 2018-19 Issues raised ahead of/during the 2018-19 teaching year and removed 2018-19 Issues raised ahead of/during the 2018-19 teaching year labels Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2018-19 Issues raised ahead of/during the 2018-19 teaching year
Projects
None yet
Development

No branches or pull requests

1 participant