-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Run all notebooks in all dirs, add exclude option
Remove magic notebook exclude dir
Showing
10 changed files
with
684 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!-- Delete the sections that don't apply --> | ||
|
||
### Backwards-incompatible changes | ||
|
||
- NotebookRunner business now runs all notebooks in a repo, at tht root and in all subdirs recursively, by default. | ||
- Add `exclude_dirs` option to NotebookRunner business to list directories in which notebooks will not be run. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
116 changes: 116 additions & 0 deletions
116
tests/notebooks_recursive/some-dir/test-some-dir-notebook.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "5cb3e0b7", | ||
"metadata": {}, | ||
"source": "This is a test notebook to check the NotebookRunner business. It should run even though it's in a directory, unless this directory is excluded..." | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"id": "f84f0959", | ||
"metadata": { | ||
"ExecuteTime": { | ||
"end_time": "2024-05-17T20:37:58.826140Z", | ||
"start_time": "2024-05-17T20:37:58.823537Z" | ||
} | ||
}, | ||
"source": "print(\"Test some-dir\")", | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"Test some-dir\n" | ||
] | ||
} | ||
], | ||
"execution_count": 1 | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"id": "44ada997", | ||
"metadata": { | ||
"ExecuteTime": { | ||
"end_time": "2024-05-17T20:38:00.590204Z", | ||
"start_time": "2024-05-17T20:38:00.587773Z" | ||
} | ||
}, | ||
"source": [ | ||
"import os\n", | ||
"print(\"Another test some-dir\")" | ||
], | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"Another test some-dir\n" | ||
] | ||
} | ||
], | ||
"execution_count": 2 | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "d5cea3a7", | ||
"metadata": {}, | ||
"source": [ | ||
"Another Markdown cell" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "541caea0", | ||
"metadata": {}, | ||
"source": [ | ||
"Yet another Markdown cell. This one has a list.\n", | ||
"- one\n", | ||
"- two\n", | ||
"- three" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"id": "53a941a4", | ||
"metadata": { | ||
"ExecuteTime": { | ||
"end_time": "2024-05-17T20:38:02.105516Z", | ||
"start_time": "2024-05-17T20:38:02.103211Z" | ||
} | ||
}, | ||
"source": "print(\"Final test some-dir\")", | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"Final test some-dir\n" | ||
] | ||
} | ||
], | ||
"execution_count": 3 | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.2" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
92 changes: 92 additions & 0 deletions
92
...ebooks_recursive/some-other-dir/nested-dir/double-nested-dir/test-double-nested-dir.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "5cb3e0b7", | ||
"metadata": {}, | ||
"source": " This is a test notebook to check the NotebookRunner business. It should run even though it's in a directory, unless this directory is excluded..." | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"id": "f84f0959", | ||
"metadata": { | ||
"ExecuteTime": { | ||
"end_time": "2024-05-17T20:39:57.123503Z", | ||
"start_time": "2024-05-17T20:39:57.121412Z" | ||
} | ||
}, | ||
"source": "print(\"Test double-nested-dir\")", | ||
"execution_count": 1, | ||
"outputs": [] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"id": "44ada997", | ||
"metadata": { | ||
"ExecuteTime": { | ||
"end_time": "2024-05-17T20:39:57.150633Z", | ||
"start_time": "2024-05-17T20:39:57.124284Z" | ||
} | ||
}, | ||
"source": [ | ||
"import os\n", | ||
"print(\"Another test double-nested-dir\")" | ||
], | ||
"execution_count": 2, | ||
"outputs": [] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "d5cea3a7", | ||
"metadata": {}, | ||
"source": [ | ||
"Another Markdown cell" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "541caea0", | ||
"metadata": {}, | ||
"source": [ | ||
"Yet another Markdown cell. This one has a list.\n", | ||
"- one\n", | ||
"- two\n", | ||
"- three" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"id": "53a941a4", | ||
"metadata": { | ||
"ExecuteTime": { | ||
"end_time": "2024-05-17T20:39:57.176580Z", | ||
"start_time": "2024-05-17T20:39:57.151166Z" | ||
} | ||
}, | ||
"source": "print(\"Final test double-nested-dir\")", | ||
"execution_count": 3, | ||
"outputs": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.2" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
116 changes: 116 additions & 0 deletions
116
tests/notebooks_recursive/some-other-dir/test-some-other-dir.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "5cb3e0b7", | ||
"metadata": {}, | ||
"source": "This is a test notebook to check the NotebookRunner business. It should run even though it's in a directory, unless this directory is excluded..." | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"id": "f84f0959", | ||
"metadata": { | ||
"ExecuteTime": { | ||
"end_time": "2024-05-17T20:39:13.319752Z", | ||
"start_time": "2024-05-17T20:39:13.317012Z" | ||
} | ||
}, | ||
"source": "print(\"Test some-other-dir\")", | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"Test some-other-dir\n" | ||
] | ||
} | ||
], | ||
"execution_count": 1 | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"id": "44ada997", | ||
"metadata": { | ||
"ExecuteTime": { | ||
"end_time": "2024-05-17T20:39:13.345548Z", | ||
"start_time": "2024-05-17T20:39:13.320800Z" | ||
} | ||
}, | ||
"source": [ | ||
"import os\n", | ||
"print(\"Another test some-other-dir\")" | ||
], | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"Another test some-other-dir\n" | ||
] | ||
} | ||
], | ||
"execution_count": 2 | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "d5cea3a7", | ||
"metadata": {}, | ||
"source": [ | ||
"Another Markdown cell" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "541caea0", | ||
"metadata": {}, | ||
"source": [ | ||
"Yet another Markdown cell. This one has a list.\n", | ||
"- one\n", | ||
"- two\n", | ||
"- three" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"id": "53a941a4", | ||
"metadata": { | ||
"ExecuteTime": { | ||
"end_time": "2024-05-17T20:39:13.371583Z", | ||
"start_time": "2024-05-17T20:39:13.346126Z" | ||
} | ||
}, | ||
"source": "print(\"Final test some-other-dir\")", | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"Final test some-other-dir\n" | ||
] | ||
} | ||
], | ||
"execution_count": 3 | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.2" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "5cb3e0b7", | ||
"metadata": {}, | ||
"source": [ | ||
"This is a test notebook to check the NotebookRunner business. It contains some Markdown cells and some code cells. Only the code cells should run." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"id": "f84f0959", | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"This is a test\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"print(\"This is a test\")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 2, | ||
"id": "44ada997", | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"This is another test\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"import os\n", | ||
"print(\"This is another test\")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "d5cea3a7", | ||
"metadata": {}, | ||
"source": [ | ||
"Another Markdown cell" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "541caea0", | ||
"metadata": {}, | ||
"source": [ | ||
"Yet another Markdown cell. This one has a list.\n", | ||
"- one\n", | ||
"- two\n", | ||
"- three" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 3, | ||
"id": "53a941a4", | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"Final test\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"print(\"Final test\")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "823560c6", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.2" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |