Skip to content
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

Fully configurable output format #51

Open
wookayin opened this issue Sep 15, 2018 · 2 comments
Open

Fully configurable output format #51

wookayin opened this issue Sep 15, 2018 · 2 comments

Comments

@wookayin
Copy link
Owner

wookayin commented Sep 15, 2018

From @neighthan 's suggestion

It would be nice to have a full-on format string like, e.g., git log does so the user could specify which gpu parameters to show, in which order, with which colors.

To this end, we also need to introduce a config file (e.g. ~/.config/gpustat/gpustat.cfg).
Or, maybe using an environment variable?

@sisrfeng
Copy link

sisrfeng commented Jul 3, 2021

Hi, when can we use a config file?
Would you mind telling us how to modify the code to hide the gpu name and temperature?
Thx!

@neighthan
Copy link

@sisrfeng if having a config file is important to you, you could look at my repo here. I found it easier to just write a little script for this myself rather than trying to add the functionality to gpustat (especially as I already had some code for getting gpu info). My repo isn't popular like this one, though, so I haven't bothered adding much documentation. Here's what a config file looks like, though (just say which attributes you want to show, in which order, what separator to use, and any color options. Use format string syntax). Feel free to let me know if you try it and have any trouble (I'm sure it doesn't support everything that gpustat does, though).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants