-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
dvc should output prettify json in tty while having --show-json #6712
Comments
@eggqq007 are you planning on taking this issue yourself (to use the updated |
Yes, I will send the patch out later. :)
|
write_json function consumes function from_data in rich. But I found from_data doesn't accept 'default' which just like default in json.dumps. It means it may hit issue while converting class into json. So I'm considering whether to continue to use from_data to print prettify json. |
@eggqq007, maybe we can propose this on |
Thanks for your suggestions. I had created a new discussion at Textualize/rich#1534 last week but get no response. |
1. update diff.py,experiments.py,metrics.py,params.py,status.py to print prettify json 2. rewrite write_json in __init__.py to accept default function 3. add new unit test for write_json in tests/unit/ui/test_console.py 4. Fix iterative#6712
1. update diff.py,experiments.py,metrics.py,params.py,status.py to print prettify json 2. rewrite write_json in __init__.py to accept default function 3. add new unit test for write_json in tests/unit/ui/test_console.py 4. Fix #6712 Co-authored-by: Zhenyu Gao <[email protected]>
Pre-issue: #6646
The text was updated successfully, but these errors were encountered: