Skip to content

Commit

Permalink
Kernel: Fix showing tracebacks in Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Jan 17, 2025
1 parent 92bcb30 commit 8b9c4f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spyder_kernels/console/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,12 @@ def set_configuration(self, conf):
elif key == "color scheme":
self.set_color_scheme(value)
elif key == "traceback_highlight_style":
self.set_traceback_syntax_highlighting(value)
# This doesn't work in Python 3.8 because the last IPython
# version compatible with it doesn't allow to customize the
# syntax highlighting scheme used for tracebacks.
# Fixes spyder-ide/spyder#23484
if sys.version_info >= (3, 9):
self.set_traceback_syntax_highlighting(value)
elif key == "jedi_completer":
self.set_jedi_completer(value)
elif key == "greedy_completer":
Expand Down

0 comments on commit 8b9c4f0

Please sign in to comment.