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

Fix: Respect allow_errors value #530

Closed
wants to merge 2 commits into from

Conversation

martinRenou
Copy link
Member

@martinRenou martinRenou commented Jan 28, 2020

This will fix #519.

It will respect the value of the allow_errors option.

If allow_errors is False (default), the execution will stop on the first error, and the traceback of the last error will be visible only if Voila is run with --debug.

If allow_errors is True, the execution does not stop on errors, and tracebacks are visible only if Voila is run with --debug.

voila/handler.py Outdated Show resolved Hide resolved
@martinRenou martinRenou force-pushed the allow_errors branch 2 times, most recently from 16e1463 to 6158b3f Compare January 29, 2020 09:52
@martinRenou martinRenou marked this pull request as ready for review January 29, 2020 09:54
@martinRenou martinRenou force-pushed the allow_errors branch 3 times, most recently from 649cf1c to c5b926b Compare January 29, 2020 11:01
This test fails due to a broken installation of matplotlib/NumPy. It is
not related to Voila and passes on Ubuntu, Python 3.5.

Signed-off-by: martinRenou <[email protected]>
@@ -8,6 +10,7 @@ def voila_args(notebook_directory, voila_args_extra):


@pytest.mark.gen_test
@pytest.mark.skipif(sys.version_info < (3, 6), reason="Matplotlib installation issue on MacOS, Python 3.5")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove that since we now require 3.6.

@SylvainCorlay
Copy link
Member

This needs a rebase!

Also, it seems that the change to notebooks_test.py is unnecessary.

maartenbreddels added a commit to maartenbreddels/voila that referenced this pull request Aug 19, 2020
maartenbreddels added a commit to maartenbreddels/voila that referenced this pull request Aug 31, 2020
maartenbreddels added a commit to maartenbreddels/voila that referenced this pull request Aug 31, 2020
@martinRenou martinRenou closed this Sep 2, 2020
martinRenou added a commit that referenced this pull request Sep 2, 2020
fix: stop executing cells when an error is encountered (replaces #530)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VoilaExecutePreprocessor.allow_errors always True
2 participants