From 3026c205487897f6874b2ff580fe0be33e36e033 2022-01-07 10:52:06 From: Matthias Bussonnier Date: 2022-01-07 10:52:06 Subject: [PATCH] fix highlighting of ast nodes in traceback. Using ansi mean it will follow terminal colorscheme --- diff --git a/IPython/core/ultratb.py b/IPython/core/ultratb.py index c03a6c3..1f08fa5 100644 --- a/IPython/core/ultratb.py +++ b/IPython/core/ultratb.py @@ -826,8 +826,8 @@ class VerboseTB(TBTools): after = context // 2 before = context - after if self.has_colors: - style = get_style_by_name('default') - style = stack_data.style_with_executing_node(style, 'bg:#00005f') + style = get_style_by_name("default") + style = stack_data.style_with_executing_node(style, "bg:ansiyellow") formatter = Terminal256Formatter(style=style) else: formatter = None