the building terminal does not render ANSII coloring
See original GitHub issueDetails
- Read the Docs project URL: https://readthedocs.org/projects/sepal-ui/
- Build URL (if applicable): https://readthedocs.org/projects/sepal-ui/builds/14700568/
- Read the Docs username (if applicable): borntobealive
Expected Result
I build my new documentation using a new extention called jupyter-sphinx. The extention build jupyter binder on the fly to execute cells and display them within the documentation. My installation was working just fine locally but when i pushed it to RDT an error occured.
The issue being that python kernel error are displayed using ANSII color code. These color codes are not rendered by the RDT terminal, making it impossible to read:
[0;31m---------------------------------------------------------------------------[0m
[0;31mFileNotFoundError[0m Traceback (most recent call last)
[0;32m/tmp/ipykernel_244/3861035409.py[0m in [0;36m<module>[0;34m[0m
[1;32m 1[0m [0;32mfrom[0m [0msepal_ui[0m [0;32mimport[0m [0mmapping[0m [0;32mas[0m [0msm[0m[0;34m[0m[0;34m[0m[0m
[1;32m 2[0m [0;34m[0m[0m
[0;32m----> 3[0;31m [0msm[0m[0;34m.[0m[0mSepalMap[0m[0;34m([0m[0;34m)[0m[0;34m[0m[0;34m[0m[0m
[0m
which should look like:
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_244/3861035409.py in <module>
1 from sepal_ui import mapping as sm
2
----> 3 sm.SepalMap()
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Integrated Terminal with wrong ANSI colors #146357 - GitHub
ANSI colors in terminal do not render the way they are supposed to. Colored text on colored backgrounds appears as black or white...
Read more >Git Bash in Windows Terminal not rendering Picocli ANSI ...
For showing ansi colors on Windows, I strongly recommend that applications use the Jansi library in combination with picocli.
Read more >Use ANSI colors in the terminal - Windows CMD - SS64.com
Specify the color codes in a batch file by ECHOing the foreground and/or background color codes (from the following table) followed by the...
Read more >Windows console with ANSI colors handling - Super User
When writing with WriteFile or WriteConsole, characters are parsed for VT100 and similar control character sequences that control cursor movement, color/font ...
Read more >ANSI color coding not output in VSCode Git bash
(Since I don't use VSCode, I don't really know what it allows). Sure enough, the bash.exe above doesn't render the colors.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Issues like these are in a strange place until we have our public beta ready at very least. Agreed that it feels like we need a way to track these though, and follow up when the public beta goes up.
I’d avoid putting these on the development board for the new templates, as they’ll just get shuffled out of view I’m sure (the work is done).
Hi, we set the
NO_COLOR
env https://no-color.org, there is an open issue on the plugin repo about this https://github.com/jupyter/jupyter-sphinx/issues/115.I think @agjohnson did some progress to support ansii colors in the build page on the new templates.