I want to run some extra checks in my code when my notebooks are being exported using nbconvert
.
Is there any way to detect when this is the case?
I already tried the solutions from Detecting when a python script is being run interactively in ipython, without success: everything indicates the notebook is being run interactively.