jupyterlab-system-monitor
jupyterlab-system-monitor copied to clipboard
Failed to show CPU usage in the pip installation
Hi! Thank you for this really useful plugin! I tried to follow the README and install the plugin via pip but failed to see the CPU usage even if I configured as guided.
However, then I followed the process of https://github.com/jtpio/jupyterlab-system-monitor#development and successfully make CPU usage chart shown. Also, I need to run development process under the home directory of this repo.
I wonder if the plugin is not well packaged or the artifacts are not well linked?
same problem here. latest ubuntu. latest python3 and jupyter lab.
there was no jupyter notebook config file so i created it by jupyter notebook --generate-config
and set it up as suggested here.
c.ResourceUseDisplay.mem_limit = 30000000000
c.ResourceUseDisplay.track_cpu_percent = True
c.ResourceUseDisplay.cpu_limit = 20
I now have memory usage figure but not the graph and no CPU usage.
I tried to use command line with the same effect
jupyter lab --NotebookApp.ResourceUseDisplay.mem_limit=$(( 30000000000 ))
--NotebookApp.ResourceUseDisplay.track_cpu_percent=True
--NotebookApp.ResourceUseDisplay.cpu_limit=$(( 20 ))
Hey everyone,
I also have the same problem. I have JupyterLab3.6.1 installed in an conda environment and I installed this extnesion via pip install jupyterlab-system-monitor.
Were you only able to show the CPU usage via development installation? I was also not able to install it on JupyterLab3.6.2 via development installation due to an error:
jlpm run build
yarn run v1.21.1
$ lerna run build
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 2 packages: "jlpm run build"
lerna info run Ran npm script 'build' in 'jupyterlab-system-monitor-base' in 4.2s:
$ tsc
lerna ERR! jlpm run build exited 1 in 'jupyterlab-system-monitor'
lerna ERR! jlpm run build stdout:
$ jlpm run build:lib && jlpm run build:labextension:dev
$ tsc
$ jupyter labextension build --development True .
An error occurred.
subprocess.CalledProcessError: Command '['node', '/home/annabell/JupyterExtensions/jupyterlab-system-monitor/node_modules/@jupyterlab/builder/lib/build-labextension.js', '--core-path', '/home/annabell/miniconda3/envs/jupyterlab361/lib/python3.11/site-packages/jupyterlab/staging', '/home/annabell/JupyterExtensions/jupyterlab-system-monitor/packages/system-monitor', '--development']' returned non-zero exit status 1.
See the log file for details: /tmp/jupyterlab-debug-o9f9z64h.log
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! jlpm run build stderr:
Building extension in .
Compilation starting…
node:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at BulkUpdateDecorator.hashFactory (...JupyterExtensions/jupyterlab-system-monitor/node_modules/webpack/lib/util/createHash.js:138:18)
at BulkUpdateDecorator.update (...JupyterExtensions/jupyterlab-system-monitor/node_modules/webpack/lib/util/createHash.js:44:50)
at OriginalSource.updateHash (...JupyterExtensions/jupyterlab-system-monitor/node_modules/webpack/node_modules/webpack-sources/lib/OriginalSource.js:104:8)
at NormalModule._initBuildHash (...JupyterExtensions/jupyterlab-system-monitor/node_modules/webpack/lib/NormalModule.js:736:17)
at handleParseResult (...JupyterExtensions/jupyterlab-system-monitor/node_modules/webpack/lib/NormalModule.js:800:10)
at ...JupyterExtensions/jupyterlab-system-monitor/node_modules/webpack/lib/NormalModule.js:853:4
at processResult (...JupyterExtensions/jupyterlab-system-monitor/node_modules/webpack/lib/NormalModule.js:624:11)
at ...JupyterExtensions/jupyterlab-system-monitor/node_modules/webpack/lib/NormalModule.js:675:5 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.13.0
error Command failed with exit code 1.
error Command failed with exit code 1.
lerna ERR! jlpm run build exited 1 in 'jupyterlab-system-monitor'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
same proble ,did anyone has the solution
same problem ,did anyone has the solution
Closing as jupyterlab-system-monitor
has now been integrated in jupyter-resource-usage
: https://github.com/jupyter-server/jupyter-resource-usage/issues/191
Feel free to open a new issue on the jupyter-resource-usage
repo if needed: https://github.com/jupyter-server/jupyter-resource-usage
Thanks!