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

detect color support for Jupyter Notebook #38

Open
keturn opened this issue Dec 15, 2019 · 1 comment
Open

detect color support for Jupyter Notebook #38

keturn opened this issue Dec 15, 2019 · 1 comment

Comments

@keturn
Copy link
Contributor

keturn commented Dec 15, 2019

Jupyter Notebook's web interface supports truecolor escape codes in stdout!

A screenshot of colored text from JupyterLab

As does the Qt Console, it looks like.

It'd be nice for colorful to default to using color when in a Notebook!

@keturn
Copy link
Contributor Author

keturn commented Dec 15, 2019

It doesn't currently, of course, because it knows it is not attached to a TTY.

It's a hard thing to figure out, because you're running in some ipython kernel far away from the renderer.

tqdm is trying to figure it out. It's still labeled "experimental": https://github.com/tqdm/tqdm/blob/master/tqdm/autonotebook.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant