From af3efd58f06cbd5701f267c99f375ff6fda71e57 2020-02-27 18:49:47 From: Alex Hall Date: 2020-02-27 18:49:47 Subject: [PATCH] Highlight the executing node with stack_data --- diff --git a/IPython/core/ultratb.py b/IPython/core/ultratb.py index 5125947..bea9a51 100644 --- a/IPython/core/ultratb.py +++ b/IPython/core/ultratb.py @@ -98,6 +98,7 @@ import traceback import stack_data from pygments.formatters.terminal256 import Terminal256Formatter +from pygments.styles import get_style_by_name # IPython's own modules from IPython import get_ipython @@ -714,7 +715,9 @@ class VerboseTB(TBTools): after = context // 2 before = context - after if self.has_colors: - formatter = Terminal256Formatter() + style = get_style_by_name('default') + style = stack_data.style_with_executing_node(style, 'bg:#00005f') + formatter = Terminal256Formatter(style=style) else: formatter = None options = stack_data.Options(