-
Notifications
You must be signed in to change notification settings - Fork 949
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
vscode-jupyter does not show ANSI color codes when using the output widget #3957
Comments
It even has the right classes, but for some reason the style sheet appears to be missing: |
Workaround: Import the missing stylesheet manually. from IPython.display import HTML
from urllib.request import urlopen
html = urlopen("https://raw.githubusercontent.com/jupyterlab/jupyterlab/refs/heads/main/packages/rendermime/style/base.css")
HTML(f"<style>{html.read().decode('utf-8')}</style>") |
Awesome thanks for tracking this down. I hope upstream vscode fixes this soon. Colorful logs here I come! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Ansi color codes are stripped and no color is shown in output captured by the output widget.
Reproduce
Expected behavior
Both lines are colored red.
Context
The text was updated successfully, but these errors were encountered: