Skip to content

Commit

Permalink
support more versions of ipython
Browse files Browse the repository at this point in the history
  • Loading branch information
first last committed Dec 26, 2024
1 parent bfcd63d commit 09be5f3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .ipython/profile_default/ipython_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,21 @@
c = get_config() #noqa

# Default traceback color of dark yellow is a bit painful. This sets the
# background color to "bg:ansiwhite" to disable that highlighting. I
# background color to "bg:ansiwhite" to disable that highlighting.
#
# Needs to be set differently in versions before vs after
# https://github.com/ipython/ipython/pull/14518/files, so we do it both here.
from IPython.core.ultratb import VerboseTB
VerboseTB.tb_highlight = "bg:ansiwhite"
VerboseTB._tb_highlight = "bg:ansiwhite"

# Set style of both input as well as tracebacks; any pygments styles are fair
# game.
style = "zenburn"
# game. This one is minimalistic but works well with light or dark terminal
# backgrounds.
style = "bw"
c.TerminalInteractiveShell.highlighting_style = style
VerboseTB.tb_highlight_style = style
VerboseTB._tb_highlight_style = style

#------------------------------------------------------------------------------
# InteractiveShellApp(Configurable) configuration
Expand Down

0 comments on commit 09be5f3

Please sign in to comment.