Ask Your Question
0

See if code running in notebook?

asked 2013-05-09 10:07:00 -0600

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2013-05-09 10:39:06 -0600

tmonteil gravatar image

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

edit flag offensive delete link more

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: 2013-05-09 10:07:00 -0600

Seen: 62 times

Last updated: May 09 '13