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

Testing differences across two pre-run notebooks / paths #207

Open
psychemedia opened this issue Jun 26, 2024 · 0 comments
Open

Testing differences across two pre-run notebooks / paths #207

psychemedia opened this issue Jun 26, 2024 · 0 comments

Comments

@psychemedia
Copy link

One of the ways we use nbval is to test legacy notebooks in new environments to see if there are any breaking changed to notebooks arising from environment updates.

It would be really handy to be able to generate nbval reports for pre-run versions of the same notebooks already executed in different environments.

For example:

  • compare two notebooks: py.test --nbval-diffnb my_notebook_in env1.ipynb my_notebook_in env2.ipynb — use env1 notebook as reference and text env2 notebook outpurs against it;
  • compare notebooks with common names in two directories: py.test --nbval-diffpath env1_nb_path/ env2_nb_path/ — use notebooks in env1 path as reference values, and text similarly notebbooks from env2 path.
@psychemedia psychemedia changed the title Testing across already pre-run notebooks Testing differences across two pre-run notebooks / paths Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant