PyREPL color themes

Python 3.14 in its latest beta release supports syntax highlighting in the default REPL.

The default color theme poorly integrates with the default colors of Ubuntu’s terminal. I have put together a template for adjusting the default color scheme but I would be happy if there was someone with good taste ready to setup the colors for me. If anyone know of any theme collections that already exists, I would be happy to hear about them too. Thanks, Paweł

2 Likes

Tip: you don’t need to set all the colours (like this), instead you can use default_theme.copy_with() and then only change the ones you want to.

See the big comment in _colorize.py.

3 Likes

6 posts were split to a new topic: Why does _colorize.copy_with() exist?

Thanks for the comment and for the discussion. I have updated the script to use copy.replace. I am still interested in learning about themes that others create.