jupyterhub / jupyterlab-hub

Deprecated: JupyterLab extension for running JupyterLab with JupyterHub
BSD 3-Clause "New" or "Revised" License
181 stars 40 forks source link

Link to Hub to restart stopped servers #83

Open minrk opened 5 years ago

minrk commented 5 years ago

When there's an error connecting to the server, JupyterLab shows a generic error:

screen shot 2019-02-26 at 10 51 55

Unlike the general jupyterlab situation, in JupyterHub there's a known link to restart the server via the hub. It would be handy to provide a link to restart the server in this dialog and provide a more JupyterHub-tailored message indicating that the user's server has been shut down.

Further, this same event may not be a connection error, it may be an error code (503 in the upcoming jupyterhub 1.0, 404 in 0.9).

This should solve https://github.com/jupyterhub/jupyterhub/issues/2293

Is there an appropriate hook to customize the server connection message?

minrk commented 5 years ago

We should also probably be polling /api/status to check that the Hub is up, and showing a restart link if we start getting errors.