See if code running in notebook?
Is it possible for code to check if it's being run from the Notebook or from the Interactive Shell? (I want to format the output differently in the two cases.)
Is it possible for code to check if it's being run from the Notebook or from the Interactive Shell? (I want to format the output differently in the two cases.)
Asked: 11 years ago
Seen: 677 times
Last updated: May 09 '13