jupyterlab-nvdashboard
jupyterlab-nvdashboard copied to clipboard
blank content
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
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?
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
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?
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)
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
Could you share the response from the page that is getting a 404?
Ok great thanks. And are there any errors in your Jupyter logs?
Can you provide the log location that I need to check?
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.
ok, checked. also without error in jupyter log
so seems this is not an incompatibility issue with JH.
Any chance @ian-r-rose could take a quick look here and let me know if I'm missing something?
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.
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
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.
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?
Hmm, can you verify that it is, in fact, importable?
yes, seems i can import it
I received the following error:
500 GET /nvdashboard/index.json?1576415340199 (127.0.0.1): could not start nvdashboard in time
Thanks for raising that @aradhyamathur, this sounds slightly different so I'm going to make a new issue from your comment.
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:
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.
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?
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 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.
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?
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
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.
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 😉
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.
@mohak2312 I recommend checking the browser console.
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
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.
the nvdashboard didn't show up on the extension bar in jupyter.
what's the problem?