-
Notifications
You must be signed in to change notification settings - Fork 94
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
Better "cylc monitor" - rewrite for ncurses? #1685
Comments
Note comments in #1739 - we should also consider making the terminal monitor conform to the user's GUI colour choices, or if that's not possible (and it probably isn't) at least make the terminal colours easily customizable. |
I took a quick look at this during jet-lag recovery. I had Cylc monitor in mind when thinking about the Tree View, it should be pretty easy to implement GScan + TreeView for a new Implementation options:
Thoughts:
|
Would need more time to consider the other two options as I've not well versed in shell 😬 thoughts on some items of the 3rd option below.
Hadn't heard about this one! Interesting. Shame it hasn't seen much activity since 2018, and it's using Vue 2.5 (we are on 2.6 which has extra stuff that we could be using and is not available on 2.5 - lyonlai/blessed-vue#11).
Looking at the readme, looks like they mention
True.
I have a post-it somewhere about doing something similar. I think I mentioned to @hjoliver before that in the future once we have Cylc 8 done, I would like to explore creating Jupyter Notebook widgets. The idea would be to have something that would allow users to create cells like
Or so, and that would add the tree view component into the notebook. Allowing users to embed images, monitor workflows, use for publication, etc. But instead of a separate project, I was thinking in having the |
Kinda annoying. I wonder how necessary it is to use a Vue plugin to Blessed. Blessed doesn't seem to have a tree view (though blessed-contrib does) so we would probably end up writing our own anyway... Dammit blessed is cool. |
Damn, that is cool. |
If the way forward via blessed or hand-coded ncurses isn't clear or easy, I'd suggest:
|
+1 to @hjoliver's suggestion above. We still have time before the 8.0 release, so that will give us time to test and improve it if necessary. |
blessed references an extension that seems much more active: (and popular... 13k stars!) |
Also, would be nice for it to hook up to either workflow or uiserver graphql endpoint (so it can be used with the workflow in isolation of the rest of the components) |
The
cylc monitor
utility seems to be viewed as quite useful. It's currently quite unsophisticated, however: it simply prints strings to the terminal, sleeps for a second and callsos.system("clear")
before re-display, and there is no capacity for interaction with the suite or manipulating the view at run time. It would be nice to have a more sophisticated monitor - with functionality akin to the GUI - where for e.g. you could change sort order at run time, or hit "k" and then type in the name of tasks to kill, etc. Use of ncurses (which has a Python interface) would presumably make it easy to do this sort of thing. A commonly used ncurses application with some similar functionality ishtop
- for monitoring Linux processes: http://hisham.hm/htop/The text was updated successfully, but these errors were encountered: