From eff055b13f043aeb12bbca909f997e7ade8009f5 Mon Sep 17 00:00:00 2001 From: Zachary Lentz Date: Fri, 2 Oct 2020 10:30:20 -0700 Subject: [PATCH] MNT: disable jedi three times for good luck --- hutch_python/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hutch_python/cli.py b/hutch_python/cli.py index 0203d6ee..6968e581 100644 --- a/hutch_python/cli.py +++ b/hutch_python/cli.py @@ -120,8 +120,11 @@ def main(): logger.warning('No DISPLAY environment variable detected. ' 'Methods that create graphics will not ' 'function properly.') - # Avoid bugs, probably removable at some point + # Old API for disabling Jedi. Keep in just in case API changes back. ipy_config.InteractiveShellApp.Completer.use_jedi = False + # New API for disabling Jedi (two access points documented, use both) + ipy_config.Completer.use_jedi = False + ipy_config.IPCompleter.use_jedi = False # Finally start the interactive session start_ipython(argv=['--quick'], user_ns=objs, config=ipy_config) else: