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
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
The text was updated successfully, but these errors were encountered:
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 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
The text was updated successfully, but these errors were encountered: