-
Notifications
You must be signed in to change notification settings - Fork 572
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
Implement 16 named ANSI colors #259
Conversation
In that case, it will also need a new release of the notebook, and nbconvert will have to pull in the CSS from that new version. So I guess the notebook is the thing to focus on first. I have no objection to differentiating the bright versions of colours. |
Neither do I. |
To avoid relying on a notebook release, we can add an additional CSS file to this repo, for any classes needed here that are not (or not yet) defined or available there. |
Thanks for the feedback! I'll try to hack this into the |
I made a PR for the Notebook: jupyter/notebook#1230 |
OK, jupyter/notebook#1230 has been merged. I've rebased this PR and added tests (b28f2bf). I've also added support for the escape codes 90-97 and 100-107 (7b799e0). I've not added the CSS definitions. Is it foreseeable when the next Notebook CSS release will be? |
Another thing: I renamed a few colors in the LaTeX template to make clear that those are ANSI colors, but I don't know if the old color names were used anywhere else in a different context.
How should I handle this? One suggestion that comes to my mind:
|
notebook-5.0 will not be very soon, and we should be releasing nbconvert very soon (it's frankly overdue for a release by months). So if this should get into a minor release, it has to include a copy of the CSS definitions. |
OK, I added the temporary CSS definitions: 692594c I'm still waiting for instructions regarding #259 (comment). |
@mgeier sorry for not replying. Semantic names sounds good to me, if you want to add that. |
These select "intense" foreground and background colors, respectively.
I've added the discussed color definitions and removed the unused colors. |
Great, thanks! |
Thanks for merging! I'm looking forward to the new release! |
Yes (jupyter/notebook#1230), but it's not yet in a released version. |
Thank you for the reference! |
@KristofferC Just a little side note: What you call "Light Red" in your example, will actually become very close to the old "Red". The new "Red" will be brighter, which looks fainter and weaker on a white background. That's the reason why I called the colors 9-16 "intense" instead of "light" or "bright". |
... instead of 8. See #245.
For this to work, the notebook CSS has to be updated:
I chose the colors as a mix of http://www.xcolors.net/dl/baskerville-ivorylight and http://www.xcolors.net/dl/euphrasia.
I haven't changed the tests yet, I'd like to get some feedback before doing that.
Any comments?