Skip to content

Commit

Permalink
Try setting myst flag to raise on notebook error
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-rose committed Jun 13, 2023
1 parent ce48d99 commit 0fc83b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ parse:
sphinx:
config:
linkcheck_ignore: ["https://doi.org/*",]
nb_execution_raise_on_error: true # raise exception in build if there are notebook errors
html_favicon: notebooks/images/icons/favicon.ico
html_last_updated_fmt: '%-d %B %Y'
html_theme: sphinx_pythia_theme
Expand Down
12 changes: 11 additions & 1 deletion notebooks/notebook-template.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@
"---"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# THIS IS JUST FOR TESTING -- should raise exception\n",
"print(bob)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -295,7 +305,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.0"
"version": "3.10.8"
},
"nbdime-conflicts": {
"local_diff": [
Expand Down

0 comments on commit 0fc83b2

Please sign in to comment.