fix: traceback colours (#25356)
default ipython colours use yellow on white font, which looks horrible and is practically unreadable on most colourschemes.
This commit is contained in:
parent
4963a7e2b2
commit
59f421cd04
1 changed files with 8 additions and 0 deletions
|
|
@ -619,6 +619,14 @@ def console(context, autoreload=False):
|
|||
if failed_to_import:
|
||||
print("\nFailed to import:\n{}".format(", ".join(failed_to_import)))
|
||||
|
||||
# ref: https://stackoverflow.com/a/74681224
|
||||
try:
|
||||
from IPython.core import ultratb
|
||||
|
||||
ultratb.VerboseTB._tb_highlight = "bg:ansibrightblack"
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
terminal.colors = "neutral"
|
||||
terminal.display_banner = False
|
||||
terminal()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue