Skip to content

Commit

Permalink
MNT: disable jedi three times for good luck
Browse files Browse the repository at this point in the history
  • Loading branch information
ZLLentz committed Oct 2, 2020
1 parent ec84c2d commit eff055b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hutch_python/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eff055b

Please sign in to comment.