From ec115fd8058b64087380b7c6d1495440417bd5a2 Mon Sep 17 00:00:00 2001 From: pinksi Date: Fri, 6 Oct 2023 10:51:31 -0500 Subject: [PATCH 1/3] updates readme with show_host_usage feature --- README.md | 8 +++++++- doc/kernel-usage-limited-info.png | Bin 0 -> 20483 bytes 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 doc/kernel-usage-limited-info.png diff --git a/README.md b/README.md index 7fa613a..bac5bf6 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,13 @@ Kernel resource usage can be displayed in a sidebar for IPython kernels with The kernel usage is available for Notebook 7.x too which can be enabled at `View -> Right Sidebar -> Show Kernel Usage`. In the case of JupyterLab interface, it is -enough to click `tachometer` icon on the right sidebar. +enough to click `tachometer` icon on the right sidebar. + +If you want to hide information from the Kernel Usage sidebar +you can set `--ResourceUseDisplay.show_host_usage=False` to hide `Host CPU` and `Host Virtual Memory` information. The default is +set as `True`, i.e. show all the information. + +![Screenshot for kernel usage with limited info](./doc/kernel-usage-limited-info.png) The package provides an alternative frontend for the `jupyter-resource-usage` metrics: diff --git a/doc/kernel-usage-limited-info.png b/doc/kernel-usage-limited-info.png new file mode 100644 index 0000000000000000000000000000000000000000..0a549b2941570cf1dade8466c9fcd607a0e66396 GIT binary patch literal 20483 zcmeIaWmHsc+Xf6c$RJ7!sKn5sq(Mpyh=7!UbV`bp)X*SENDmEC79dhmLkuNINhu8j zjO0iRNH=_29|qs=;a%(f_5J(Syl`!7MQ( z@)MG`=YHq>(kJiRXzvoy%J>lh0d3?0r zbdKyExv%XPB|6c+4@p73Q9zxTrSJ&IU*LhBfrg=jFMd=1{R_kdM9wyZ|DVU+1WDyU zB=<*p&euI@xci^~KKI+;LDwFbs5=DeP0Tog3CNR~@#EI=it0QE9YCQFikXYFw80?% zTq-Geo3*;r)h4^d-1=YbOa$a@tS=xGYyo5ISKGX-)kuJmqWGXH%#?62!$py_Z6ccN zqj#KsU@1s6Uci0$5@fsP{F;$oKd`fG6+Gy2m2iod*v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Ts108U2yHv>GG;S2!ac6^2bo;cF~0stp7oMnI~{k#7LfRkuD%K%TFKLY?bvz=vt zCv^1;0N_UaHv>FLNoN26XNWTl5NC)p0Dv>|83u?ur#~O@|4#tGE$M$UKwO1(1^{r5 zeTD(z%zOp_aCSSx08d8zHvr&fIKu!>c6=59PRx9k0iMio7648R{of1_S7n|709+bA z!vIgrb`}6mtZ Date: Wed, 28 Aug 2024 13:05:26 +0100 Subject: [PATCH 2/3] Lint --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a6ebd60..98bb885 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,11 @@ Kernel resource usage can be displayed in a sidebar for IPython kernels with The kernel usage is available for Notebook 7.x too which can be enabled at `View -> Right Sidebar -> Show Kernel Usage`. In the case of JupyterLab interface, it is -enough to click `tachometer` icon on the right sidebar. +enough to click `tachometer` icon on the right sidebar. -If you want to hide information from the Kernel Usage sidebar -you can set `--ResourceUseDisplay.show_host_usage=False` to hide `Host CPU` and `Host Virtual Memory` information. The default is -set as `True`, i.e. show all the information. +If you want to hide host information from the Kernel Usage sidebar +you can set `--ResourceUseDisplay.show_host_usage=False` to hide `Host CPU` and `Host Virtual Memory` information. +The default is set as `True`, i.e. show all the information. ![Screenshot for kernel usage with limited info](./doc/kernel-usage-limited-info.png) From 4a1dfe178a2ad200bc82c77a391e9d0e16254143 Mon Sep 17 00:00:00 2001 From: krassowski <5832902+krassowski@users.noreply.github.com> Date: Wed, 28 Aug 2024 13:09:43 +0100 Subject: [PATCH 3/3] Move the addition to the configuration section --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 98bb885..e161376 100644 --- a/README.md +++ b/README.md @@ -28,12 +28,6 @@ The kernel usage is available for Notebook 7.x too which can be enabled at `View -> Right Sidebar -> Show Kernel Usage`. In the case of JupyterLab interface, it is enough to click `tachometer` icon on the right sidebar. -If you want to hide host information from the Kernel Usage sidebar -you can set `--ResourceUseDisplay.show_host_usage=False` to hide `Host CPU` and `Host Virtual Memory` information. -The default is set as `True`, i.e. show all the information. - -![Screenshot for kernel usage with limited info](./doc/kernel-usage-limited-info.png) - The package provides an alternative frontend for the `jupyter-resource-usage` metrics: ![screencast](./doc/topbar.gif) @@ -109,6 +103,14 @@ The threshold for this warning can be configured as a fraction of the memory lim If you want to flash the warning to the user when they are within 10% of the memory limit, you can set the parameter `--ResourceUseDisplay.mem_warning_threshold=0.1`. +### Host information + +If you want to hide host information from the Kernel Usage sidebar +you can set `--ResourceUseDisplay.show_host_usage=False` to hide `Host CPU` and `Host Virtual Memory` information. +The default is set as `True`, i.e. show all the information. + +![Screenshot for kernel usage with limited info](./doc/kernel-usage-limited-info.png) + ### CPU Usage `jupyter-resource-usage` can also track CPU usage and report a `cpu_percent` value as part of the `/api/metrics/v1` response.