You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #225 I'm proposing to change the LaTeX rendering of a Python exception from
to
... which I think is quite an improvement. But I was wondering if we should go a step further ...
ANSI escape sequences allow 16 "default" colors, which are basically 8 distinct colors and then the same 8 colors in a brighter version. Typically, the brighter version is used for bold text, but it can also be used independently (and as a background color).
The Jupyter Notebook, however, only supports 8 default colors and maps the other 8 colors back to the first 8.
Does anyone have an idea why this is done?
What about re-enabling all 16 color but then choosing nice ones?
The exact color values are implementation-defined, their names are: Black Red Green Yellow Blue Magenta Cyan White.
The bright version of "Black" is sometimes called "Darkgray", the "normal" (= dark) version of "Yellow" is sometimes called "Brown", the "normal" (= dark) version of "White" is sometimes called "Gray".
See https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
The currently used CSS classes are ansiblack ansired ansigreen ansiyellow ansiblue ansipurple ansicyan ansigray, which seem to be the "official" names, except "gray" is used instead of "white".
We could just add "bright" versions of those and then choose reasonable default colors in the default CSS.
For LaTeX, we can then probably just use the same color names and the same color values.
Or is this a bad idea?
The text was updated successfully, but these errors were encountered:
Re only defining 8 colours: I would guess that it was a 'good enough' kind of thing. i.e. once ANSI colour translation was basically working, other things became higher priority and it got forgotten about. Thanks for coming back to this stuff!
In #225 I'm proposing to change the LaTeX rendering of a Python exception from
to
... which I think is quite an improvement. But I was wondering if we should go a step further ...
ANSI escape sequences allow 16 "default" colors, which are basically 8 distinct colors and then the same 8 colors in a brighter version. Typically, the brighter version is used for bold text, but it can also be used independently (and as a background color).
The Jupyter Notebook, however, only supports 8 default colors and maps the other 8 colors back to the first 8.
Does anyone have an idea why this is done?
What about re-enabling all 16 color but then choosing nice ones?
The exact color values are implementation-defined, their names are: Black Red Green Yellow Blue Magenta Cyan White.
The bright version of "Black" is sometimes called "Darkgray", the "normal" (= dark) version of "Yellow" is sometimes called "Brown", the "normal" (= dark) version of "White" is sometimes called "Gray".
See https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
The currently used CSS classes are ansiblack ansired ansigreen ansiyellow ansiblue ansipurple ansicyan ansigray, which seem to be the "official" names, except "gray" is used instead of "white".
We could just add "bright" versions of those and then choose reasonable default colors in the default CSS.
For LaTeX, we can then probably just use the same color names and the same color values.
Or is this a bad idea?
The text was updated successfully, but these errors were encountered: