6

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
  • 119,623
  • 25
  • 170
  • 301
MasterScrat
  • 7,090
  • 14
  • 48
  • 80

0 Answers0