{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/nbconvert/issues/225","repository_url":"https://api.github.com/repos/jupyter/nbconvert","labels_url":"https://api.github.com/repos/jupyter/nbconvert/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/nbconvert/issues/225/comments","events_url":"https://api.github.com/repos/jupyter/nbconvert/issues/225/events","html_url":"https://github.com/jupyter/nbconvert/pull/225","id":130763719,"number":225,"title":"Re-write ANSI color handling","user":{"login":"mgeier","id":705404,"avatar_url":"https://avatars.githubusercontent.com/u/705404?v=3","gravatar_id":"","url":"https://api.github.com/users/mgeier","html_url":"https://github.com/mgeier","followers_url":"https://api.github.com/users/mgeier/followers","following_url":"https://api.github.com/users/mgeier/following{/other_user}","gists_url":"https://api.github.com/users/mgeier/gists{/gist_id}","starred_url":"https://api.github.com/users/mgeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgeier/subscriptions","organizations_url":"https://api.github.com/users/mgeier/orgs","repos_url":"https://api.github.com/users/mgeier/repos","events_url":"https://api.github.com/users/mgeier/events{/privacy}","received_events_url":"https://api.github.com/users/mgeier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jupyter/nbconvert/milestones/6","html_url":"https://github.com/jupyter/nbconvert/milestones/4.2","labels_url":"https://api.github.com/repos/jupyter/nbconvert/milestones/6/labels","id":1337993,"number":6,"title":"4.2","description":null,"creator":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":36,"state":"open","created_at":"2015-10-05T11:24:44Z","updated_at":"2016-02-15T14:22:13Z","due_on":null,"closed_at":null},"comments":25,"created_at":"2016-02-02T17:58:51Z","updated_at":"2016-02-15T19:22:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jupyter/nbconvert/pulls/225","html_url":"https://github.com/jupyter/nbconvert/pull/225","diff_url":"https://github.com/jupyter/nbconvert/pull/225.diff","patch_url":"https://github.com/jupyter/nbconvert/pull/225.patch"},"body":"Initially, I only wanted to have less ugly colors for Python exceptions shown in LaTeX output.\r\nBut then I found out that the whole ANSI-handling code is quite a mess (which I already hinted on in #214).\r\n\r\nThe code handling HTML and LaTeX was completely separate and showed quite different behavior.\r\n\r\nI re-implemented the whole thing, now most of the code is shared between HTML and LaTeX output. I also implemented the 256 indexed colors and 24-bit RGB colors which are supported by the live notebook. And I fixed several bugs along the way (e.g. #174).\r\n\r\nThere are a few caveats, though:\r\n\r\n* The behavior is still different from the live notebook, but I consider my implementation more correct in several points. I'll probably list the bugs in a separate issue there, once I got some feedback here.\r\n\r\n* The 8 (resp. 16) default colors are still different between HTML and LaTeX because I didn't dare to change the color definitions. But probably this should be adjusted?\r\n\r\n* I had to add 2 `\\newcommand`s in the LaTeX template because there were errors when I tried to use something like `\\textcolor[RGB]{255,0,0}{some text}` within a `Verbatim` environment. I think it may have something to do with the commas (I read somewhere that they might be \"active\", whatever that means ...), but I don't know enough TeX-fu to find, let alone fix the error. Can somebody help with that?"},"comment":{"url":"https://api.github.com/repos/jupyter/nbconvert/issues/comments/184352765","html_url":"https://github.com/jupyter/nbconvert/pull/225#issuecomment-184352765","issue_url":"https://api.github.com/repos/jupyter/nbconvert/issues/225","id":184352765,"user":{"login":"takluyver","id":327925,"avatar_url":"https://avatars.githubusercontent.com/u/327925?v=3","gravatar_id":"","url":"https://api.github.com/users/takluyver","html_url":"https://github.com/takluyver","followers_url":"https://api.github.com/users/takluyver/followers","following_url":"https://api.github.com/users/takluyver/following{/other_user}","gists_url":"https://api.github.com/users/takluyver/gists{/gist_id}","starred_url":"https://api.github.com/users/takluyver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takluyver/subscriptions","organizations_url":"https://api.github.com/users/takluyver/orgs","repos_url":"https://api.github.com/users/takluyver/repos","events_url":"https://api.github.com/users/takluyver/events{/privacy}","received_events_url":"https://api.github.com/users/takluyver/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T19:22:33Z","updated_at":"2016-02-15T19:22:33Z","body":"In ur codebase, killin ur bugz? ;-)"}}