jupyter-server / jupyter-resource-usage

Jupyter Notebook Extension for monitoring your own Resource Usage
BSD 2-Clause "Simplified" License
477 stars 104 forks source link

Jupyter Notebook (Sagemaker Instance) : Not displaying Memory #64

Open MayurBMahajan opened 4 years ago

MayurBMahajan commented 4 years ago

Installed nbresuse as per following steps ;

pip install nbresuse jupyter serverextension enable --py nbresuse --sys-prefix jupyter nbextension install --py nbresuse --sys-prefix jupyter nbextension enable --py nbresuse --sys-prefix

But When I start the notebook, memory is not displayed on screen. and Yes, I have psutil already installed.

image

any help is much appreciated.

jaclyn-patterson commented 3 years ago

I'm having the same issue

manics commented 3 years ago

Does Sagemaker use the standard Jupyer Notebook, or does it have any Amazon customisations?

vinnsvinay commented 3 years ago

I am having the same issue and would like to know if there is any solution to it?

Edit: Found a solution to it. We need to activate the correct environment and restart the jupyter server after installing/enabling the extension

source /home/ec2-user/anaconda3/bin/activate JupyterSystemEnv
pip install nbresuse
jupyter serverextension enable --py nbresuse --sys-prefix
jupyter nbextension install --py nbresuse --sys-prefix
jupyter nbextension enable --py nbresuse --sys-prefix
sudo initctl restart jupyter-server --no-wait
abukaj commented 1 year ago

Edit: Found a solution to it. We need to activate the correct environment and restart the jupyter server after installing/enabling the extension

source /home/ec2-user/anaconda3/bin/activate JupyterSystemEnv
pip install nbresuse
jupyter serverextension enable --py nbresuse --sys-prefix
jupyter nbextension install --py nbresuse --sys-prefix
jupyter nbextension enable --py nbresuse --sys-prefix
sudo initctl restart jupyter-server --no-wait

It should be in the installation guide unless nbresuse is added to dependencies. It works so good that now I have two estimates (sometimes significantly different, like 4.6 and 1.9 GB): ss :rofl: