we are using this in our demo right now for the sharing feature. So thank you very much.
Is it possible to customize the timeout instead of a fixed 1 hour value
It errored out if the second user who has the link does not have a notebook server up. So the user has to login to his account and start a server and then paste the link in the browser. Not a blocker, but I can see a lot of bug reports coming my way
@rajiv.abraham Great, glad you are getting use out of it. Thanks for the feedback, very helpful.
It is possible to customize the timeout (up to some hard-coded max, intended to ensure users donāt use this feature for very long term sharing, for which it is not suitable) by passing ?expiration_time=X into the request. The parameter is processed here:
But this parameter is not currently exposed in the user interface of the JupyterLab extension. Do you think it would be sufficient to add a drop-down menu with a small selection of choices (1 hour, 1 day, 1 week)?
To your second point, the intended behavior is that the jupyterhub-share-link service should automatically start a server for the recipient (āsecond user who has the linkā). Moreover, it ensures that it starts a server with the same spawner_args, e.g. the same Docker image in the case of dockerspawner. It first checks to see whether the recipient already has a compatible server already running and then starts one only if needed. It may require the user to be logged in, however. Could you verify what happens if the recipient is logged in but does not have any servers running when they paste the link into their browser? If that fails, youāve found a bug that I havenāt reproduced myself.
Thanks for the ping about Docker stacks. No time to tackle that at this exact moment but Iāll circle back in the next couple days and update here.
Expiration
Thanks for sharing that. Iāll check out the params option. The Drop down option looks good too. It would be great to have that!
Prerequisite: User 2 has to have a server up before the link can be shared.
I canāt reproduce it right now but weāll be testing it and Iāll let you know.
Docker stacks. whenever you can, much appreciate it.
And this may be a vague question and perhaps just noise. But I had to install nbviewer to make it work. I canāt find the error right now. but just throwing it out there.