Subscribe to the RSS feed by copy/paste the link below
RSS

Restore Ipython's readline, tab-completion.

Posted by Admin on 9. June, 2020
MyBlog ยป

Create a profile(ipython profile create), then navigate to the default config file (home/.ipython/profile_default/ipython_config.py for me) and edit a few values. Find and replace the relevant lines:

c.TerminalInteractiveShell.display_completions = 'readlinelike'
c.TerminalInteractiveShell.highlighting_style = 'bw'

You can also interactively play with the config in an interactive session, eg.

%config TermninalInteractiveShell.highlighting_style = 'monokai'

Warning: the config file is not backwards compatible,
 so if you have a env with an older version of IPython,
 and there is a new-style config file in .ipython/,
 it will throw a warning when you launch the IPython interpreter.

 

Last changed: 9. June, 2020 at 12:33

Back to Overview



Comments

No comment found

Add Comment