-
Notifications
You must be signed in to change notification settings - Fork 18
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
Ignore Error Message if Not IPython #147
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. The 'not isinstance()' check leading into the print can be a little confusing as we are printing in the positive case that there is a Python object. However I acknowledge that this is the best compact 1-line way to write it and only takes a second to understand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the one comment on checking for None
, this looks good. Just the one simple change, and then I'll accept.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
#127 introduced a bug where the error message
will always print if the
IPython
module is installed, even when running outside ofIPython
, such as when running hatchet in a terminal.This PR fixes the bug by not printing the error message if IPython is not registered.