Unit tests for functions in a Jupyter notebook?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/codehunter

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • ploomber

    The fastest ⚡️ way to build data pipelines. Develop iteratively, deploy anywhere. ☁️

    It's great you're trying to run tests on top of the notebook, we wrote a whole series about testing for ML, here's the first chapter. Ploomber actually allows you to run the tests as functions on-finish of a notebook/script, so it's similar to a CI essentially. I would focus more on the code/cells themselves and less on the outputs since those as you said, aren't static. I'd also keep the tests as a separate module.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts