How to mock/monkeypatch during notebook execution

Have you seen testbook?
It says it supports injecting code and patching.

I learned of it in the Testing notebooks thread here. There may be other things to look into there.

1 Like