When running ipytest multiple times, the rewrite warnings for plugins in pytest are triggered. I raised the issue upstream: https://github.com/pytest-dev/pytest/issues/5432 Depending on the repsonse, try to work around locally. My current ideas: 1. https://github.com/pytest-dev/pytest/issues/4439 2. try restoring `self._rewritten_names` before each run