aboutsummaryrefslogtreecommitdiff
path: root/summarize.py
diff options
context:
space:
mode:
Diffstat (limited to 'summarize.py')
-rwxr-xr-xsummarize.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/summarize.py b/summarize.py
index ca1927a..8f1d8f4 100755
--- a/summarize.py
+++ b/summarize.py
@@ -202,5 +202,9 @@ if __name__ == "__main__":
exclude_benchmarks=args.exclude_benchmarks)
if args.interactive:
- import code
- code.InteractiveConsole(locals=globals()).interact()
+ try:
+ import IPython
+ IPython.embed()
+ except ModuleNotFoundError:
+ import code
+ code.InteractiveConsole(locals=globals()).interact()