Configure IPython5 to have IPython3’s readline, tab-completion, (lack-of) syntax highlighting, etc? (self.IPython)

Start by creating a default iPython profile. From your shell, type:

$ ipython profile create

That should give output similar to this:

[ProfileCreate] Generating default config file: u'/home/mmphego/.ipython/profile_default/ipython_config.py'
[ProfileCreate] Generating default config file: u'/home/mmphego/.ipython/profile_default/ipython_kernel_config.py'

Open the newly created file with your favorite text editor, in the above example shown as:

vim /home/mmphego/.ipython/profile_default/ipython_config.py

Add the following lines at the bottom:

c.TerminalInteractiveShell.display_completions = 'readlinelike'

Save the file.

Previous

Screenshot_2017-12-18_17-12-15

New

Screenshot_2017-12-18_17-13-11

Advertisements