Ask Your Question

Robert's profile - activity

2014-06-29 18:55:46 +0200 received badge  Popular Question (source)
2014-06-29 18:55:46 +0200 received badge  Notable Question (source)
2013-05-10 13:56:00 +0200 received badge  Scholar (source)
2013-05-10 13:56:00 +0200 marked best answer See if code running in notebook?

Yes it is possible, you can see two possibilities in this post.

2013-05-10 13:55:55 +0200 received badge  Supporter (source)
2013-05-09 17:07:00 +0200 asked a question 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.)