enabling colors in the python interactive shell on OS/X

12,983

bpython appears to do what you want.

bpython is a fancy interface to the Python interpreter for Linux, BSD, OS X and Windows (with some work). bpython is released under the MIT License. It has the following (special) features:

enter image description here

  • In-line syntax highlighting
  • Readline-like autocomplete with suggestions displayed as you type
  • Expected parameter list for any Python function
  • Send the code you've entered off to a pastebin
  • Auto-indentation
    And more

Alternatives are IPython or DreamPie

Share:
12,983

Related videos on Youtube

emm
Author by

emm

Updated on September 18, 2022

Comments

  • emm
    emm almost 2 years

    I have just modified my .bash_profile so as to have colors in iTerm and Terminal.

    Now, I want to enable syntax highlighting for the Python interactive shell, IDLE-style.

    How to do that?

  • Admin
    Admin over 12 years
    @vtest I now added syntax highlighting feature to the ipython features list in the wiki table. Thank you.