-
Notifications
You must be signed in to change notification settings - Fork 67
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
ENH: More compact logging #764
Conversation
I actually prefer the horizontal dividers that expand across the entire screen. Is that an option for you still? |
The horizonal dividers (rules) are still there. Can you clarify what you mean? |
... you mean without the title in the rule itself? Yes we can do that instead of having the title in the rule. It's a little less compact vertically but it'll work. I'll try that and attach a screenshot to see if it's more what you're looking for |
I prefer (1) or (2) over (3), but if you feel strongly about it I can live with (3). Or maybe @drammock can weigh in and decide! |
Of the options shown I prefer 2. I would further do the same thing with "done" lines that was done in titles (remove emoji and set "done (58 s)" in green within a rule. And (no surprise here) I'd remove all emojis (what's the value / added information of seeing a stack of hourglass emojis?). My 2 cents |
This reverts commit 075418c.
I like this approach, +1 from me to go this route! |
Co-authored-by: Richard Höchenberger <[email protected]>
I agree. The original idea was to display the hourglasses while the step is still running, and changing the glass to a checkmark once the step has completed. But we never implemented it that way. I believe this might now be possible thanks to our switch to |
I'd actually rather not do this -- CIs (and maybe logging tools?) don't respond well to this. In practical terms, our CircleCI logs will become terrible... I guess we could add an option to disable such live updates. But to me having the time a thing started is enough not to worry about status. So I'd rather let someone motivated to do it work on it :) |
Co-authored-by: Richard Höchenberger <[email protected]>
(Also FYI it can be hard to get line updating right in a parallel context... I think we eventually made it work with tqdm in MNE but it's one more complication we'd have to think about when implementing) |
In that case, could we leave the hourglasses for the time being? I'd like to revisit this later after doing some research regarding what's possible with |
Yes and to me there is information that might justify keeping it even with live updating. Differnt step execution types -- skipped, cached, cached-but-forced-to-rerun, running, etc. -- have different icons so in reruns you can quickly see what recomputed. Maybe at some point clear enough text can replace this but in the meantime the emojis make it easy to group steps / see what was run versus skipped/cached quickly. |
... marking for merge-when-green in the meantime! |
the double-line all the way across is not necessary. I'm happy with the line connecting to "done" and the "done" being green. |
* upstream/main: ENH: More compact logging (mne-tools#764)
* upstream/main: ENH: More compact logging (mne-tools#764)
Before merging …
@hoechenberger feel free to review/merge if you're happy.
I have been bothered by too much redundancy and overuse of horizontal space in our logging recently. Now that we use
rich
we can make better use ofrule
to avoid redundancy. In particular, currently we print the name of the step at each logging line and it takes up almost a third of the horizontal space (here shown in 132x43 terminal, the largest in the Ubuntu Linux default Terminal drop-down):With
.rule
we can cleanly log the start of each step as a title and link everything using a consistent color instead (green):So I think overall this becomes both easier to follow and more compact / less redundant.
Also adds
[link]
support to make the Report HTML Files clickable.