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

Add hack to change traceback syntax highlighting #14138

Merged
merged 2 commits into from Aug 28, 2023

Conversation

li-dan
Copy link

@li-dan li-dan commented Aug 14, 2023

Similar to #13756, add a hack to configure the Pygments style for syntax highlighting of tracebacks.

This does not change default behavior.

To use the hack, add to ipython_config.py:

from IPython.core.ultratb import VerboseTB
VerboseTB._tb_highlight_style = "pastie"

Mitigates #13953.

Similar to ipython#13756, add a hack to configure the Pygments style for
syntax highlighting of tracebacks.

This does not change default behavior.

To use the hack, add to ipython_config.py:

    from IPython.core.ultratb import VerboseTB
    VerboseTB._tb_highlight_style = "pastie"

Mitigates ipython#13953.
@Carreau Carreau added this to the 8.15 milestone Aug 28, 2023
@Carreau
Copy link
Member

Carreau commented Aug 28, 2023

Thanks, that seems reasonable.

@Carreau Carreau merged commit 124de52 into ipython:main Aug 28, 2023
20 of 21 checks passed
@li-dan li-dan deleted the tb_highlight_hack branch August 28, 2023 12:04
@li-dan
Copy link
Author

li-dan commented Aug 28, 2023

Thanks!

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.

None yet

2 participants