How to configure IPython 5 for IPython 3 syntax highlighting, syntax highlighting, etc.? (Self.IPython)

I know that at some point I might want to β€œupgrade”, but for now I just need an old look and feel.

I know that IPython is very customizable, but I was not very lucky to find the right settings.

(By the way, this applies only to the IPython interactive terminal)

+5
source share
1 answer

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

$ ipython profile create 

This should result in a result similar to this, assuming someuser :

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

Open the newly created file with your favorite text editor, in the example above, shown as: /home/someuser/.ipython/profile_default/ipython_config.py

Add the bottom lines below:

 c.TerminalInteractiveShell.colors = 'NoColor' c.TerminalInteractiveShell.display_completions = 'readlinelike' 

Save the file.

It should be like that. Changes should be active in new iPython sessions.

+3
source

All Articles