LLNL / hatchet

Graph-indexed Pandas DataFrames for analyzing hierarchical performance data
https://llnl-hatchet.readthedocs.io
MIT License
27 stars 18 forks source link

Ignore Error Message if Not IPython #147

Open michaelmckinsey1 opened 1 month ago

michaelmckinsey1 commented 1 month ago

https://github.com/LLNL/hatchet/pull/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.