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

CI: Add Workflow to Run Jupyter Notebooks #5696

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

EZoni
Copy link
Member

@EZoni EZoni commented Feb 22, 2025

This PR adds a CI workflow where we can execute Jupyter notebooks without opening a web browser using nbconvert:

jupyter nbconvert --to notebook --execute my_notebook.ipynb

While discussing with @oshapoval about some recent PRs, we realized that one of the two PSATD notebooks available in Source/Tools/Algorithms/ needed an update to run without errors with the newest versions of SymPy (which introduced some stricter policies for mutable vs. immutable matrices). We did not catch this bug earlier because those notebooks were never executed automatically.

Notebooks added to the CI workflow:

  • psatd.ipynb
  • psatd_pml.ipynb

More notebooks (e.g., post-processing), whenever possible, can be added to the same CI workflow in the future.

@EZoni EZoni added the component: tests Tests and CI label Feb 22, 2025
@EZoni EZoni force-pushed the ci_add_jupyter_notebooks branch from 21db2af to 4709f6e Compare February 22, 2025 06:43
@EZoni EZoni changed the title [WIP] CI: Add Workflow to Run Jupyter Notebooks CI: Add Workflow to Run Jupyter Notebooks Feb 26, 2025
@RemiLehe RemiLehe requested a review from ax3l March 4, 2025 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tests Tests and CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants