dask-labextension icon indicating copy to clipboard operation
dask-labextension copied to clipboard

HTTP access to plots in JupyterLab being blocked

Open dhirschfeld opened this issue 3 years ago • 1 comments

In JupyterLab the plots aren't being displayed:

image

...and I see an error about HTTP being blocked:

image

Environment:

  • JupyterHub 1.5.0 / JupyterLab 3.3.1
  • Python version: 3.7
  • Operating System: Ubuntu Linux container
  • Install method conda
# Name                    Version                   Build  Channel
dask                      2022.2.0           pyhd8ed1ab_0    https://conda.anaconda.org/conda-forge
dask-core                 2022.2.0           pyhd8ed1ab_0    https://conda.anaconda.org/conda-forge
dask-glm                  0.2.0                      py_1    https://conda.anaconda.org/conda-forge
dask-kubernetes           2022.1.0           pyhd8ed1ab_0    https://conda.anaconda.org/conda-forge
dask-labextension         5.2.0              pyhd8ed1ab_0    https://conda.anaconda.org/conda-forge
dask-ml                   1.9.0              pyhd8ed1ab_0    https://conda.anaconda.org/conda-forge
distributed               2022.2.0         py37h89c1867_0    https://conda.anaconda.org/conda-forge

dhirschfeld avatar Apr 05 '22 02:04 dhirschfeld

Sorry for the slow response @dhirschfeld. This is a common issue that people run into (see discussion here: https://github.com/dask/dask-labextension/issues/194). Long-term, I think the right solution is to proxy more stuff under the notebook server, but as as short-term fix you might be able to access your server by using the jupyter-server-proxy /proxy/<ip-address> endpoint, and allow-listing the relevant address. It's not very ergonomic, but should work (see some discussion in the linked issue).

ian-r-rose avatar Jun 16 '22 20:06 ian-r-rose