3

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.

martineau
  • 112,593
  • 23
  • 157
  • 280
MasterScrat
  • 6,474
  • 14
  • 46
  • 78

0 Answers0