xcube-dev / xcube

xcube is a Python package for generating and exploiting data cubes powered by xarray, dask, and zarr.
https://xcube.readthedocs.io/
MIT License
179 stars 19 forks source link

Cannot show `/openapi.html` when running viewer in Jupyter notebook #1006

Open forman opened 1 month ago

forman commented 1 month ago

Describe the bug

Cannot show /openapi.html when running viewer/server from Jupyter.

To Reproduce

In Jupyter NB:

viewer = Viewer()
viewer.add_dataset(ds)
viewer.show()

Click server URL and change URL to */openapi.html

Expected behavior

xcube server APIs should be displayed.

Screenshots

image

forman commented 1 month ago

Issue has its root cause in xcube.server.webservers.tornado.TornadoApiRequest.url_for_path:

image