Ask Your Question
0

See if code running in notebook?

asked 11 years ago

Robert gravatar image

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.)

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 11 years ago

tmonteil gravatar image

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

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 11 years ago

Seen: 677 times

Last updated: May 09 '13