ipytest: Unit Tests in IPython Notebooks

It is important to create unit tests for your functions to make sure they work as you expected, even the experimental code in your Jupyter Notebook. However, it can be difficult to create unit tests in a notebook.

Luckily, ipytest allows you to run pytest inside the notebook environment. To use ipytest, simply add %%ipytest -qq inside the cell you want to run pytest.

Link to ipytest.

My previous tips on Jupyter Notebook.

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran