nbsnapshot – Snapshot testing for Jupyter notebooks
nbsnapshot – Snapshot testing for Jupyter notebooks
I want to share a project I've been working on to facilitate Jupyter notebook testing (https://github.com/edublancas/nbsnapshot). When analyzing data in a Jupyter notebook, I unconsciously memorize "rules of thumb" to determine if my results are correct. For example, I might print some summary statistics and become skeptical of some outputs if they deviate too much from what I've seen historically. For more complex analysis, I often create diagnostic plots (e.g., a histogram) and check them whenever new data arrives. Since I constantly repeat the same process, I figured I'd code a small library to streamline this process. nbsnapshot benchmarks cell's outputs with historical results and raises an error if the output deviates from an expected range (by default, 3 standard deviations from the mean). To learn more, check out the blog post (https://ploomber.io/blog/snapshot-testing/). I quickly put together this as a proof of concept and would love to learn if this sounds useful for other notebook users so I spend more time working on it. Please share your feedback!
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Treon – Testing Framework for Jupyter Notebooks
Observable Notebooks
ipynb-tex – Jupyter Notebooks and TeX
Euporie, a Tui for Jupyter Notebooks
Livebook, code notebooks in Elixir (Phoenix LiveView)
An Alternative to Jupyter Notebooks
Explore Jupyter notebooks
Ploomber Cloud Notebooks – Share Jupyter notebooks with one click
Jupyter Notebooks to Slides
ChefSpec – RSpec testing for Chef Cookbooks