diff --git a/jupyter_resource_usage/static/main.js b/jupyter_resource_usage/static/main.js index 00d2352..0a1e6f5 100644 --- a/jupyter_resource_usage/static/main.js +++ b/jupyter_resource_usage/static/main.js @@ -14,13 +14,30 @@ define([ .attr('title', 'Actively used Memory (updates every 5s)') ) ); + $('#maintoolbar-container').append( + $('
').attr('id', 'jupyter-resource-usage-display-cpu') + .addClass('btn-group') + .addClass('jupyter-resource-usage-hide') + .addClass('pull-right').append( + $('').text(' CPU: ') + ).append( + $('').attr('id', 'jupyter-resource-usage-cpu') + .attr('title', 'Actively used CPU (updates every 5s)') + ) + ); // FIXME: Do something cleaner to get styles in here? $('head').append( $('