diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-04-12 17:36:50 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-04-12 17:36:50 +0200 |
| commit | 35342880f45458df0f9e59d743c55827904a67cb (patch) | |
| tree | c08a17b272e7fadedd86acd14427a4e0eb80db32 | |
| parent | 58e6157f7e0b356d57dc9499435ca98154a86217 (diff) | |
| download | allocbench-35342880f45458df0f9e59d743c55827904a67cb.tar.gz allocbench-35342880f45458df0f9e59d743c55827904a67cb.zip | |
use IPython for interactive summary if available
| -rwxr-xr-x | summarize.py | 8 |
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() |
