You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was trying to use rich inside brython, but seems that their re matching of the colors (early init). While 99% of cases this is not causing problems, maybe would be a great idea to allow the init with custom theme and not depend on default theme.
I am planning to use it for headless logging and generate json based output that may be rendered later on terminal or somewhere else. In such use-cases custom theme would be also useful. In such situations I would make the evaluation of colors "lazy", and evaluate them only when really rendered to the terminal.
About rendering to json/yaml, will write another post here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Was trying to use rich inside brython, but seems that their re matching of the colors (early init). While 99% of cases this is not causing problems, maybe would be a great idea to allow the init with custom theme and not depend on default theme.
I am planning to use it for headless logging and generate json based output that may be rendered later on terminal or somewhere else. In such use-cases custom theme would be also useful. In such situations I would make the evaluation of colors "lazy", and evaluate them only when really rendered to the terminal.
About rendering to json/yaml, will write another post here.
Regards
Z
Beta Was this translation helpful? Give feedback.
All reactions