Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formatting for ipython #55

Merged
merged 5 commits into from
Dec 26, 2024
Merged

formatting for ipython #55

merged 5 commits into from
Dec 26, 2024

Conversation

daler
Copy link
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
2 checks passed
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