Reputation: 78
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.
Upvotes: 3
Views: 107
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