Contribute Media
A thank you to everyone who makes this possible: Read More

Prototyping to tested code


Jupyter notebooks are a great environment to prototype solutions and explore their design. Turning these solutions into reusable components usually requires moving them out of the notebook environment into external python packages. Often, at this stage, the code is refactored and test are written.

In this talk, I will demo `ipytest <>`__, a small tool to run tests inside notebooks. It supports `pytest <>`__ as well as the standard `unittest <>`__ framework. It allows to start prototypes in a notebook and to develop the tests with the code in an highly interactive environment. As the code grows, it can be transparently moved outside notebooks and transformed into reusable components. By bringing support for tests to the notebook environment, `ipytest <>`__ bridges the artificial gap between notebooks and reusable components.


Improve this page