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
format output
  • Loading branch information
MarkDaoust committed May 31, 2024
commit 1fe560b9f479157b86a815e660c58f1e8e55b230
4 changes: 2 additions & 2 deletions tools/run_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ 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(">>>>>>>> Skiping cell:")
print(cell.source)
print("<<<<<<<<")

Expand Down Expand Up @@ -356,7 +356,7 @@ def filter(paths):
traceback_file = pathlib.Path('tracebacks.txt')
with open(error_file, 'a') as ef, open(good_file, 'a') as df, open(traceback_file, 'a') as tbf:
for notebook in tqdm.tqdm(notebooks):
print("\n\n"+"_"*80)
print("\n"+"_"*80)
print(notebook)
if str(notebook) in good_notebooks:
print(' Okay!')
Expand Down
Loading