Skip to content

Commit 8b9c4f0

Browse files
committed
Kernel: Fix showing tracebacks in Python 3.8
1 parent 92bcb30 commit 8b9c4f0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spyder_kernels/console/kernel.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,12 @@ def set_configuration(self, conf):
641641
elif key == "color scheme":
642642
self.set_color_scheme(value)
643643
elif key == "traceback_highlight_style":
644-
self.set_traceback_syntax_highlighting(value)
644+
# This doesn't work in Python 3.8 because the last IPython
645+
# version compatible with it doesn't allow to customize the
646+
# syntax highlighting scheme used for tracebacks.
647+
# Fixes spyder-ide/spyder#23484
648+
if sys.version_info >= (3, 9):
649+
self.set_traceback_syntax_highlighting(value)
645650
elif key == "jedi_completer":
646651
self.set_jedi_completer(value)
647652
elif key == "greedy_completer":

0 commit comments

Comments
 (0)