jupyterlab-nvdashboard icon indicating copy to clipboard operation
jupyterlab-nvdashboard copied to clipboard

blank content

Open ggosiang opened this issue 5 years ago • 67 comments

I've followed installation steps below to install into my JL,

pip install jupyterlab-nvdashboard
jupyter labextension install jupyterlab-nvdashboard

but didn't get any content when running code in CPU/GPU, need help

jupyterlab             1.0.4    
jupyterlab-nvdashboard 0.1.11      
bokeh                  1.0.4

img1

img2

ggosiang avatar Oct 01 '19 07:10 ggosiang

It looks like the frontend widget is failing to load the listing of available dashboards. Could you open the developer tools in your browser and check for failing network requests?

jacobtomlinson avatar Oct 01 '19 09:10 jacobtomlinson

I don't see any error in network request field, all items with status code 200.

But in Console tab, I found two errors,

Failed to load resource: the server responded with a status of 404 () /user/testuser/nvdashboard/index.json?1569981966001:1 
Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 1 lab:1

ggosiang avatar Oct 02 '19 02:10 ggosiang

Yeah this definitely seems like a failure to grab the list of dashboards

Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 1 lab:1

This suggests an HTML response has been returned as it starts <, likely an error page from Jupyter.

Your install commands above look a little off (you say jupyterlab-bokeh-server but it should be jupyterlab-nvdashboard). Did you follow these instructions?

jacobtomlinson avatar Oct 02 '19 08:10 jacobtomlinson

Oh yes! I used following commands to install it, and without any error during installation

pip install jupyterlab-nvdashboard
jupyter labextension install jupyterlab-nvdashboard

(updated in initial question)

ggosiang avatar Oct 02 '19 08:10 ggosiang

I have just tried to reproduce in a new conda environment with the following steps and am unable to.

$ conda create -n tmp-nvdashboard-24 python=3.7 nodejs ipython jupyterlab

$ pip install jupyterlab-nvdashboard

$ jupyter labextension install jupyterlab-nvdashboard

$ jupyter lab

image

jacobtomlinson avatar Oct 02 '19 09:10 jacobtomlinson

Could you share the response from the page that is getting a 404?

jacobtomlinson avatar Oct 02 '19 09:10 jacobtomlinson

Ok great thanks. And are there any errors in your Jupyter logs?

jacobtomlinson avatar Oct 02 '19 10:10 jacobtomlinson

Can you provide the log location that I need to check?

ggosiang avatar Oct 02 '19 10:10 ggosiang

I'm afraid that will depend on your Jupyter Hub setup. I would recommend you refer to the documentation you followed to set it up, or if someone else did then check with them.

Also just reproduced a working installation using JH following this post up until the RAPIDS section and then running the two installation commands from here with sudo -E. Just wanted to rule out that this was an incompatibility with JH.

image

jacobtomlinson avatar Oct 02 '19 10:10 jacobtomlinson

ok, checked. also without error in jupyter log

so seems this is not an incompatibility issue with JH.

ggosiang avatar Oct 02 '19 10:10 ggosiang

Any chance @ian-r-rose could take a quick look here and let me know if I'm missing something?

jacobtomlinson avatar Oct 02 '19 10:10 jacobtomlinson

It looks to me like you have covered most of the things I can think of @jacobtomlinson.

@ggosiang can you make sure that the jupyter_server_proxy serverextension is installed an enabled?

jupyter serverextension list

in a terminal.

ian-r-rose avatar Oct 02 '19 14:10 ian-r-rose

yes, jupyter_server_proxy is installed and enabled. but I found an error about server extension of jupyterlab-nvdashboard not sure how to solve it?

$ jupyter serverextension list
config dir: /home/jovyan/.jupyter
    jupyterlab_git  enabled 
    - Validating...
      jupyterlab_git  OK
    jupyterlab-nvdashboard  enabled 
    - Validating...
Error loading server extension jupyterlab-nvdashboard
      X is jupyterlab-nvdashboard importable?
config dir: /opt/conda/etc/jupyter
    jupyter_server_proxy  enabled 
    - Validating...
      jupyter_server_proxy  OK
    jupyterlab  enabled 
    - Validating...
      jupyterlab 1.0.4 OK
    nbdime  enabled 
    - Validating...
      nbdime 1.1.0 OK
    nbresuse  enabled 
    - Validating...
      nbresuse  OK
    jupyter_tensorboard  enabled 
    - Validating...
      jupyter_tensorboard 0.1.10 OK
$ jupyter labextension list
JupyterLab v1.0.4
Known labextensions:
   app dir: /opt/conda/share/jupyter/lab
        @jupyter-widgets/jupyterlab-manager v1.0.2  enabled  OK
        @jupyterlab/git v0.8.2  enabled  OK
        jupyterlab-nvdashboard v0.1.11  enabled  OK
        jupyterlab_bokeh v1.0.0  enabled  OK
        jupyterlab_tensorboard v0.1.6  enabled  OK
        nbdime-jupyterlab v1.0.0  enabled  OK

ggosiang avatar Oct 03 '19 02:10 ggosiang

Looks like you may need to change jupyterlab-nvdashboard to jupyterlab_nvdashboard. That is to say, the hyphen does not make a valid python import, it needs to be an underscore. You many need to go into the /home/jovyan/.jupyter config dir to do that manually.

ian-r-rose avatar Oct 03 '19 02:10 ian-r-rose

I've made a change in /home/jovyan/.jupyter/jupyter_notebook_config.json

jupyterlab-nvdashboard -> jupyterlab_nvdashboard

but still got error

jupyterlab_nvdashboard  enabled 
    - Validating...
      X is jupyterlab_nvdashboard importable?

ggosiang avatar Oct 08 '19 01:10 ggosiang

Hmm, can you verify that it is, in fact, importable?

ian-r-rose avatar Oct 08 '19 02:10 ian-r-rose

yes, seems i can import it img

ggosiang avatar Oct 08 '19 02:10 ggosiang

I received the following error: 500 GET /nvdashboard/index.json?1576415340199 (127.0.0.1): could not start nvdashboard in time

aradhyamathur avatar Dec 15 '19 14:12 aradhyamathur

Thanks for raising that @aradhyamathur, this sounds slightly different so I'm going to make a new issue from your comment.

jacobtomlinson avatar Dec 16 '19 08:12 jacobtomlinson

No error running: pip install jupyterlab-nvdashboard jupyter labextension install jupyterlab-nvdashboard

But I get a blank GPU Dashboard...

When I run: $ jupyter serverextension list and $ jupyter labextension list I get: jupyterlab_nvdashboard

When inspecting the chrome browser error console I see: Failed to load resource: the http://a157821:8888/nvdashboard/index.json?1576801385961 server responded with a status of 404 (Not Found)

Running jupyterlab within a docker container on a DGX station.

antw-cg avatar Dec 20 '19 00:12 antw-cg

Thanks @antw-cg. I would expect that the issue is because it is trying to connect on the container hostname http://a157821:8888 which will not be routable from your browser.

Could you let me know the url you are using to connect to your Jupyter Lab instance?

jacobtomlinson avatar Dec 20 '19 08:12 jacobtomlinson

Looking further into this it appears the hostname is being provided by Jupyter Lab in the ServerConnection.makeSettings({}).baseUrl object.

When running in a container this hostname is the container's internal hostname, not the hostname where it is being exposed.

jacobtomlinson avatar Dec 20 '19 09:12 jacobtomlinson

@jacobtomlinson URL I'm connecting to in the browser is http://a157821:8888/lab.

Looking further into this it appears the hostname is being provided by Jupyter Lab in the ServerConnection.makeSettings({}).baseUrl object.

Is my best bet to change ServerConnection.makeSettings({}).baseUrl to http://a157821:8888 in the source code? I tried finding the above file in site-packages/jupyterlab_nvdashboard/, but that directory only had __init__.py __pycache__ apps server.py utils.py

If it's any help, the tensorboard jupyterlab extension is running in the same container and is working fine.

antw-cg avatar Dec 20 '19 17:12 antw-cg

Ok that's fine if you can route to it then that's not the problem.

It seems to not be able to find the extension URL. Are there any errors in the Jupyter Lab logs?

jacobtomlinson avatar Dec 20 '19 19:12 jacobtomlinson

I've followed installation steps below to install into my JL,

pip install jupyterlab-nvdashboard
jupyter labextension install jupyterlab-nvdashboard

but didn't get any content when running code in CPU/GPU, need help

jupyterlab             1.0.4    
jupyterlab-nvdashboard 0.1.11      
bokeh                  1.0.4

img1

img2

I am facing the same problem. Can anyone tell me the solution?

I tried to uninstall the extension and reinstall it again but now it didn't show up on the extension bar.

mohak2312 avatar Jan 26 '20 03:01 mohak2312

My guess is we still lack sufficient information to diagnose the problem. Are you able to share the logs from JupyterLab? Perhaps these will have the needed clue 😉

jakirkham avatar Jan 26 '20 06:01 jakirkham

Where can I look for the logs? I tried to look for the logs in jupyterlab folder but nothing is there. And on the terminal, I don't see any errors. Capture

mohak2312 avatar Jan 27 '20 00:01 mohak2312

@mohak2312 I recommend checking the browser console.

jacobtomlinson avatar Jan 27 '20 12:01 jacobtomlinson

I ran into this, updating my Dockerfile fixed it. I guess jupyter may not properly restart from a running container. This should apply to Docker or Kubernetes (KubeFlow in my example). Add this to your jupyter Dockerfile

 RUN apt install nodejs  npm -y &&\
          pip install jupyterlab-nvdashboard &&\
          jupyter labextension install jupyterlab-nvdashboard

Here is a complete sample https://github.com/rapidsai/jupyterlab-nvdashboard/pull/43

sshakeri avatar Feb 08 '20 23:02 sshakeri

Me too. followed installation steps below but got blank.

pip install jupyterlab-nvdashboard jupyter labextension install jupyterlab-nvdashboard

below is my jupyterlab's log. I am using windows 10. image

the nvdashboard didn't show up on the extension bar in jupyter. image

what's the problem?

neoragex2002 avatar Feb 20 '20 05:02 neoragex2002