jupyter-resource-usage icon indicating copy to clipboard operation
jupyter-resource-usage copied to clipboard

Jupyter Notebook (Sagemaker Instance) : Not displaying Memory

Open MayurBMahajan opened this issue 4 years ago • 4 comments

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.

MayurBMahajan avatar Aug 20 '20 06:08 MayurBMahajan

I'm having the same issue

jaclyn-patterson avatar Mar 05 '21 19:03 jaclyn-patterson

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

manics avatar Mar 05 '21 20:03 manics

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

vinnsvinay avatar Jun 29 '21 21:06 vinnsvinay

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:

abukaj avatar Oct 06 '22 14:10 abukaj