From 06bb892c89646a0f622a90836f5d8ef95e4f6ab5 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 29 May 2020 21:16:38 +0200 Subject: [PATCH] misc: use IPython.start_ipython() (#43488) --- wcs/ctl/shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcs/ctl/shell.py b/wcs/ctl/shell.py index 1df31e3d..a314a228 100644 --- a/wcs/ctl/shell.py +++ b/wcs/ctl/shell.py @@ -85,8 +85,8 @@ class CmdShell(Command): def ipython(self): try: - from IPython import embed - embed() + from IPython import start_ipython + start_ipython([]) except ImportError: # IPython < 0.11 # Explicitly pass an empty list as arguments, because otherwise -- 2.26.2