Skip to content

formatting for ipython#55

Merged
daler merged 5 commits intomasterfrom
ipython
Dec 26, 2024
Merged

formatting for ipython#55
daler merged 5 commits intomasterfrom
ipython

Conversation

@daler
Copy link
Copy Markdown
Owner

@daler daler commented Dec 26, 2024

IPython's default formatting is pretty hard to read. This config sets the pygments style to "bw" for both inputs as well as tracebacks, to look reasonable in both light and dark backgrounds. It also disables the painful dark yellow highlighting within tracebacks, but keeps the ----> indicator for where the error occurred.

ipython/ipython#14518 made changes in how this is handled, so this config supports both older and newer versions.

Added .ipython/ to include.file as well to make sure it is installed with ./setup.sh --dotfiles.

Note that on sufficiently old versions of IPython the traceback will be not be styled.

@daler daler merged commit 3ed1340 into master Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant