Skip to content

Commit

Permalink
fix highlighting of ast nodes in traceback.
Browse files Browse the repository at this point in the history
Using ansi mean it will follow terminal colorscheme
  • Loading branch information
Carreau committed Jan 7, 2022
1 parent c7def1d commit 3026c20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IPython/core/ultratb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3026c20

Please sign in to comment.