Comments (23)
I believe I've run into this same issue. While I can start a cluster and generate a valid dashboard URL, the graphs in the panes display nothing. It appears that I cannot connect to the Bokeh server.
My setup may be somewhat unusual / complicated. I'm running JupyterLab in a Docker container that is being presented inside of an iframe (I'm using the Domino Data Lab platform). I only wanted to mention this because there may be configuration settings in Domino that might affect the behavior of this extension. I'm honestly just not sure, so I figured I'd raise the question here in case there is an obvious fix / approach to troubleshooting.
$ jupyter serverextension list
config dir: /home/ubuntu/.jupyter
nbserverproxy enabled
- Validating...
nbserverproxy OK
config dir: /opt/conda/etc/jupyter
dask_labextension enabled
- Validating...
/opt/conda/lib/python3.6/site-packages/dask_labextension/config.py:13: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for fulldetails.
defaults = yaml.load(f)
dask_labextension 0.3.1 OK
ipyparallel.nbextension enabled
- Validating...
ipyparallel.nbextension OK
jupyterlab enabled
- Validating...
jupyterlab 0.35.4 OK
jupyterlab_latex enabled
- Validating...
jupyterlab_latex 0.4.1 OK
nbdime enabled
- Validating...
nbdime 1.0.5 OK
from dask-labextension.
Great! We are still dealing with some difficulties with the newest tornado, but once they are nailed down you should be able to update without difficulties.
from dask-labextension.
Thanks for the update @andersy005 and @jbaksta! If either of you have a minute to describe how to fix a problem like this, a PR to the README.md would be much appreciated.
from dask-labextension.
Adding this post about similar bokeh error for future reference: https://groups.google.com/a/continuum.io/d/msg/bokeh/3fuiBg0nGPM/m8LrBiVCAQAJ
from dask-labextension.
@andersy005 Thanks for the report. I'm not sure just now where the problem is. Just to confirm, you find that it works okay on the same cluster without using JupyterHub?
Also, cc @yuvipanda, who may have some idea about what might be going wrong in the proxying.
from dask-labextension.
Just to confirm, you find that it works okay on the same cluster without using JupyterHub?
This is correct. When using SSH tunneling, everything works okay.
from dask-labextension.
One diagnostic detail I've found instructive here is that the dask dashboard (when opened via nbserverproxy and not in the lab extension) also suffers from the same problem. My best bet is that we have some firewall setting on the hub ingress controller that is blocking websockets but as I've told @andersy005, this is way outside my area of expertise.
from dask-labextension.
@andersy005 asked me to give an update here. When using a reverse proxy (i.e., nginx, apache), the websockets connection upgrade needs to be pretty general and the documented ones ones on JupyterHub for normal functionality are too strict in the sense. I'm guessing this will probably be a thing moving forward with jupyterlab extensions in many cases.
from dask-labextension.
Closing this as it's been fixed!
from dask-labextension.
Hi @benjaminsingleton, thanks for the report. This may be the same issue as dask/dask-examples#64. Can you try downgrading notebook
to 5.7.4 and tornado
to 5.1.1 and see if that helps?
from dask-labextension.
Thanks! I will test with the versions you provided and will report back.
from dask-labextension.
@ian-r-rose Just wanted to report back that downgrading notebook=5.7.4
and tornado=5.1.1
solved the problem, as you directed! All the graphs are updating as they should.
from dask-labextension.
I just hit this same issue on nasa pleiades. Has it been resolved, or do I need to downgrade notebook and tornado as recommended?
from dask-labextension.
What version of dask_labextension
are you using? This should be fixed as of dask_labextension 0.3.2
, and the jupyterlab compatibility issues should be fixed as of 1.0.0.
from dask-labextension.
If you need to be on an earlier version than those, I would recommend downgrading tornado to 5.1.1
from dask-labextension.
I'm on dask-labextension
v1.0.0 and jupyterlab
1.0.1.
The problem is identical to the one @andersy005 described.
from dask-labextension.
@jbaksta indicated that the root of the problem was with websocket connection settings when using a reverse proxy. That type of thing very quickly gets out of my ability to answer. Can you reproduce the same thing locally or with SSH tunneling?
from dask-labextension.
It works fine when I use ssh tunneling.
The problem arises when trying to go through nbserverproxy, either directly via the cluster
dashboard link in a separate tab or when using the dask-labextension viewers.
from dask-labextension.
Do I understand you that it also occurs if you open it in a separate browser tab?
Do you still have nbserverproxy
installed, or are you using the renamed-and-revamped jupyter-server-proxy
?
from dask-labextension.
Do I understand you that it also occurs if you open it in a separate browser tab?
Yes, if I am going via nbserverproxy.
Do you still have
nbserverproxy
installed, or are you using the renamed-and-revampedjupyter-server-proxy
?
I am using nbserverproxy. I had not heard of jupyter-server-proxy.
from dask-labextension.
Yuvi renamed nbserverproxy
to jupyter-server-proxy
, and more-or-less rewrote it from the ground up. I'd recommend changing to that and trying again.
dask-labextension
now depends on jupyter-server-proxy
, so I wonder if having both installed might cause some issues.
from dask-labextension.
Yes that fixed it! Thanks!
FWIW, I did not get jupyter-server-proxy installed when I installed dask-labextension. I had to install it explicitly.
from dask-labextension.
Great! Glad it's working now!
I'm not sure why jupyter-server-proxy
was not installed properly... it's listed in the setup.py
: https://github.com/dask/dask-labextension/blob/master/setup.py#L48
from dask-labextension.
Related Issues (20)
- Dashboard doesn't show when scheduler does not listen on localhost HOT 1
- Update branding
- Open Dashboard programmatically HOT 3
- Specify default address to look for scheduler HOT 13
- Dashboard shows cluster of different user HOT 1
- No visibility (black background) with JupyterLab in Dark theme HOT 3
- Can't connect to local cluster using local IP and port HOT 1
- 5.3.0 does not create a schemas/dask-labextension/plugin.json file on install HOT 11
- Default layout HOT 4
- Need to press the new "Launch in JupyterLab" button twice HOT 1
- Help connecting to existing KubeCluster using the build-in Discovery Mechanism HOT 2
- Using +NEW freezes Jupyterlab completely HOT 3
- JLab 4.0 side-effect: Class 'RenderedCommon' incorrectly implements interface 'IRenderer'. HOT 12
- Logos no longer working well HOT 4
- Conflicting dependencies with jupyterlab=4.0.2 HOT 3
- Inject client code adds an empty cell. HOT 3
- Release HOT 3
- Button Launch Dashboard in Jupyterlab not available HOT 1
- JLab 4-compatible release HOT 5
- Dashboard does not display graphs with bokeh = 3.3.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dask-labextension.