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

Add a notebook test script. #187

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
print skipped cells
  • Loading branch information
MarkDaoust committed May 31, 2024
commit aa29c052a4766d3c9d66d553b4534e5885b15979
4 changes: 4 additions & 0 deletions tools/run_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ def _should_execute(self, cell: nbformat.notebooknode.NotebookNode) -> bool:
def preprocess_cell(self, cell, resources, cell_index, **kwargs):
"""Executes one cell in a notebook."""
if not self._should_execute(cell):
print(">>>>>>>> Skiping cell:\n")
print(cell.source)
print("<<<<<<<<")

return cell, resources

return super().preprocess_cell(cell, resources, cell_index, **kwargs)
Expand Down