diff --git a/baseplate/server/__init__.py b/baseplate/server/__init__.py index 11274eddb..f00e29c0b 100644 --- a/baseplate/server/__init__.py +++ b/baseplate/server/__init__.py @@ -374,11 +374,9 @@ def load_and_run_shell() -> None: try: # try to use IPython if possible - from IPython.terminal.embed import InteractiveShellEmbed - from IPython.core.interactiveshell import DummyMod - - shell = InteractiveShellEmbed(banner2=banner) - shell(local_ns=env, module=DummyMod()) + from IPython import start_ipython + start_ipython(argv=[], user_ns=env) + raise SystemExit except ImportError: import code