hi, currently click strips colors when used in code invoked by ipython notebooks
after a short chat on the ipython notebook channel i learned that a commonly suggested workaround is
click.utils.should_strip_ansi = lambda *k, **kw: False and that a reasonably reliable way to detect such a stream is stream.__class__.__module__.startswith('ipykernel.')
i propose setting up isatty to check this in the exception case (aka no tty attribute as the jupyter streams dont have one
additional help will be needed from someone with a windows system, as to me it is not clear whether its required to alter the stream wrapping that is used on win32
hi, currently click strips colors when used in code invoked by ipython notebooks
after a short chat on the ipython notebook channel i learned that a commonly suggested workaround is
click.utils.should_strip_ansi = lambda *k, **kw: Falseand that a reasonably reliable way to detect such a stream isstream.__class__.__module__.startswith('ipykernel.')i propose setting up isatty to check this in the exception case (aka no tty attribute as the jupyter streams dont have one
additional help will be needed from someone with a windows system, as to me it is not clear whether its required to alter the stream wrapping that is used on win32