Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve documentation of notebook detection function #156

Merged
merged 2 commits into from
May 10, 2016

Conversation

peendebak
Copy link
Contributor

Improve documentation
Add function to check for an interactive session

def is_interactive():
import __main__ as main
return not hasattr(main, '__file__')

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting... what do you intend to use this for? Want to combine this PR with #155 since they end up addressing the same topic?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved the is_interactive out of the PR (I will move it to #155)

@alexcjohnson
Copy link
Contributor

💃

@peendebak peendebak merged commit c013b28 into master May 10, 2016
@peendebak peendebak deleted the notebookhelper branch May 12, 2016 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants