iPython tips ¶
file ~/.ipython/profile_default/ipython_config.py:
## Options for displaying tab completions, 'column', 'multicolumn', and
# 'readlinelike'. These options are for `prompt_toolkit`, see `prompt_toolkit`
# documentation for more information.
#c.TerminalInteractiveShell.display_completions = 'multicolumn'
try:
c.TerminalInteractiveShell.display_completions = 'readlinelike'
except:
pass
## Options for configuring the SQLite connection
#
# These options are passed as keyword args to sqlite3.connect when establishing
# database conenctions.
#c.HistoryAccessor.connection_options = {}
# avoid: Sqlite ProgrammingError exception when embedding shell in thread
# see: https://github.com/ipython/ipython/issues/680
c.HistoryAccessor.connection_options = {
"check_same_thread": False
}
# disable jedi in ipython if autocompletion is slow;
# see: https://github.com/ipython/ipython/issues/10493#issuecomment-298968328
c.IPCompleter.use_jedi = False
# https://www.reddit.com/r/IPython/comments/dn9x27/ipython_interpreter_tabautocompletion_very_slow/
c.Completer.use_jedi = False
