Last active
September 24, 2023 14:54
-
-
Save SergiyKolesnikov/f94d91b947051ab5d2ba1aa30e25f050 to your computer and use it in GitHub Desktop.
Testing and Debugging Jupyter Notebooks
Hi, is there any similar trick to use pytest
within a notebook, without resorting to extra-dependencies such as ipytest
?
Hi, is there any similar trick to use pytest within a notebook, without resorting to extra-dependencies such as ipytest?
Unfortunately, I do not know a trick like that. I have researched this some time ago and the only two options that I found were either using an Jupyter extension or exporting the notebook to a Python file.
Thanks. I opened a feature request on pytest, let's see what happens with no success.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not claiming the following is minimal or Pythonic, but I can say that it does what I wanted to have happen in my Jupyter notebook: