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

Ignore Error Message if Not IPython #147

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

michaelmckinsey1
Copy link
Collaborator

#127 introduced a bug where the error message

Warning: Roundtrip module could not be loaded. Requires jupyter notebook version <= 7.x.

will always print if the IPython module is installed, even when running outside of IPython, such as when running hatchet in a terminal.

This PR fixes the bug by not printing the error message if IPython is not registered.

@michaelmckinsey1 michaelmckinsey1 self-assigned this Jul 31, 2024
@michaelmckinsey1 michaelmckinsey1 added status-ready-for-review This PR is ready to be reviewed by assigned reviewers type-bug Identifies bugs in issues and identifies bug fixes in PRs area-visualization Issues and PRs involving any of the Hatchet provided visualizations priority-normal Normal priority issues and PRs labels Jul 31, 2024
Copy link
Collaborator

@cscully-allison cscully-allison left a 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.

Copy link
Collaborator

@ilumsden ilumsden left a 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.

Copy link
Collaborator

@ilumsden ilumsden left a comment

Choose a reason for hiding this comment

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

LGTM

@ilumsden ilumsden added status-approved No more revisions are required on this PR and it is ready for merge and removed status-ready-for-review This PR is ready to be reviewed by assigned reviewers labels Sep 4, 2024
@slabasan slabasan added this to the 1.3.2 milestone Oct 18, 2024
@slabasan slabasan modified the milestones: 1.3.2, 2024.1.2 Oct 29, 2024
@slabasan slabasan merged commit beb9f8c into LLNL:develop Oct 29, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-visualization Issues and PRs involving any of the Hatchet provided visualizations priority-normal Normal priority issues and PRs status-approved No more revisions are required on this PR and it is ready for merge type-bug Identifies bugs in issues and identifies bug fixes in PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants