-
Notifications
You must be signed in to change notification settings - Fork 102
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
Add CPU display to extension #105
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
Thanks! |
} | ||
} | ||
|
||
$('#jupyter-resource-usage-cpu').text(display); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think CPU usage still needs to be explicitly enabled for now with track_cpu_percent
.
What happens if it is not enabled? Is the "CPU:" label displayed on the UI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, yeah it wasn't handling that and the display would be messed up. I've committed a change to handle this.
The new commit handles the Running the notebook like Running with And running
Also FYI starting the notebook with e.g.
The |
Also I guess the displayed limit is kind of inconsistent or confusing. The value in the parenthesis is the max cpus reported by the metrics API, which is different from what is configured with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Yes this sounds related to #86 |
I added a brief extension to
main.js
to support displaying CPU utilization. I'm opening a PR in case there is interest in adding this functionality.Happy to make changes to conform with style or extension usage.
This is how it looks in the browser: