How to restart user server in the same webpage but not a new tab in browser?

Hello, when user server is not available, the following will popup, when I click restart button, a new tab in browser will be opened to access the server, how to restart the server in the same webpage, not open a new one?

To restart the server within the JupyterLab page would require:

  1. specifying c.Spawner.oauth_client_allowed_scopes to include the servers scope, so that the token used by JupyterLab can make the necessary requests to the Hub API
  2. a JupyterLab extension that makes the POST /hub/api/users/:username/servers/[:servername] request to restart the server from javascript.
1 Like

Thank you, I will have a try.