Skip to content
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

enable colored output on jupyter notebooks #1186

Merged
merged 1 commit into from Jan 15, 2019

Conversation

RonnyPfannschmidt
Copy link
Contributor

this currently lacks automated tests and is entirely untested on windows

fixes #1185

@RonnyPfannschmidt
Copy link
Contributor Author

the callout i started for this wrt windows was timed rather badly, i'll take a look at making a unix only fix soon

@RonnyPfannschmidt RonnyPfannschmidt changed the title WIP: enable colored output on jupyter notebooks enable colored output on jupyter notebooks Jan 8, 2019
@RonnyPfannschmidt
Copy link
Contributor Author

i added a basic cheapskate test for detecting jupyter on unix and marked it as xfail on windows until someone with a system comes along to fix/test

the detection opts out on windows

This doesn't support Windows since I don't have a system where I could
check/test/automate colorama support.

fixes pallets#1185
@munael
Copy link

munael commented Apr 1, 2019

#1271 Applies specifically to Jupyter Lab (in case there's a difference in this case from the workings of Jupyter Notebook).

Also:

# Doing:
print(click.style(text, **styles), file=file)
# works (prints styled), while this doesn't (prints unstyled):
click.echo(click.style(text, **styles), file=file)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants