szutsmester
szutsmester

Reputation: 78

How to customize traceback background color in pycharm?

I'd like to change the background/highlight color so I can see it better. Example image:

I tried changing this setting, but it didn't work.

enter image description here

Upvotes: 3

Views: 107

Answers (1)

gehbiszumeis
gehbiszumeis

Reputation: 3711

The background color of the tracebacks is (unfortunately) hardcoded within the ipython code.

There exists a workaround by adding the following line to your ipython_config.py (likely located at ~/.ipython/profile_default)

from IPython.core import ultratb
ultratb.VerboseTB.tb_highlight = 'bg:ansired'

or specify a hex color code with 'bg:#039dfc'

If the ipython_config.py file doesn't exist, creat it with ipython profile create.

Upvotes: 0

Related Questions