From 3026c205487897f6874b2ff580fe0be33e36e033 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Fri, 7 Jan 2022 11:51:19 +0100 Subject: [PATCH] fix highlighting of ast nodes in traceback. Using ansi mean it will follow terminal colorscheme --- IPython/core/ultratb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IPython/core/ultratb.py b/IPython/core/ultratb.py index c03a6c32d3b..1f08fa51ed2 100644 --- a/IPython/core/ultratb.py +++ b/IPython/core/ultratb.py @@ -826,8 +826,8 @@ def get_records( 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