-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Rich Command line output colour customization #151
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
Conversation
Instead of creating another .cfg file we should wait until #98 is merged and add a section to that one. |
@eulertour Can you tell me what should I change so that it is compatible with it! Like should I create a place in |
Essentially create a [color] section or something similar in the file, and store the defaults there instead of in |
I will work on it and make it compatible! Also, I need to ask does this work in other OS, 'cause I have tested this only in Windows. Maybe others could check it out 'cause it should not cause an error when users use it. |
Also, @eulertour |
Yes. |
I think 🤔 I did it. Could you please whether this work. |
|
I had an idea of how |
Now #98 is merged what should I do for it to be merged? |
Hi @naveen521kk. Thanks for following up. I have not read the code for this PR, but the steps to follow now are essentially the following. Let' say you want to change the code of the output (I don't know how to do this, this is purely hypothetical, but I hope these steps clarify the problem.)
All of the above are of course examples and you will have to change the things that need changing. In summary, you need to make the following changes.
Please do not modify other parts of |
… rich-colour-cli
So @leotrs I tried for the new config parser and #98 I found a problem. I am trying out that rich coloured output PR. I tried python -m manim.logger To execute the python -m manim.anything Just execute the argparse ever if there is no submodule. Looks like this need to be checked. |
I have changed the submodule to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes Requested (a summary):
- Usage of
configparser.config
and/orconfigparser.file_writer_config
instead of implementing another config parser. - Renaming of command to run the configuration generator.
- Removal of some commented out code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes Requested:
- Turn a not-so-critical error into a warning
- Make the title indicate that this is a general purpose tool.
- Edit around a link that isn't properly displayed.
@naveen521kk Pull Request for these changes: naveen521kk#6
EDIT : For the sake of convenience, I've committed the changes directly.
`https://rich.readthedocs.io/en/latest/style.html` was hyperlinked to `docs` and would not display on VSCode's Terminal or the MacOS Terminal. This expands it out.
This utility is going to be a general purpose config editor for manim, not just for the logger. As such, a more general purpose name is required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some formatting, string and code clarity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@naveen521kk Good job on the latest commits! One standing question is that I'd love to merge a test along with this as well. @huguesdevimeux ideas? |
Well, I don’t know at all. |
Hmm fair, let's talk about tests in #201 then |
Now that #151 has been merged, this branch needs to be updated so work can resume on it.
In this PR I have changed the logging and also added an option on customizing colored output using a


rich.cfg
file. SEE the screenshot below.Below is how the configuration works out