Re: [jupyter] Jupyterhub and motd/nologin/alerts?

2020-09-02 Thread Rollin Thomas
Hi there, The question of how to get an announcement to users running in JupyterLab has been asked before, and I think what Jason suggests is the answer. The jupyterhub-announcement service has an API endpoint `/latest` that returns the latest message, when and who posted it. JupyterLab

Re: [jupyter] Jupyterhub and motd/nologin/alerts?

2020-09-02 Thread Jason Grout
If you wanted to implement a front-end extension for, say, JupyterLab, you could do this. Basically, the extension would have two parts: a server part that creates an api endpoint (i.e., a url that can be polled, like `/motd`) and a frontend part that polls the url asking for a message and

Re: [jupyter] Jupyterhub and motd/nologin/alerts?

2020-09-02 Thread Norman Gray
Michael, hello. On 1 Sep 2020, at 18:20, 'Michael Milligan' via Project Jupyter wrote: I'm not aware of a "nologin" type solution, but it sounds simple enough that someone has probably implemented one. It does sound quite simple. Having created a mildly customised spawner before, I

Re: [jupyter] Jupyterhub and motd/nologin/alerts?

2020-09-01 Thread 'Michael Milligan' via Project Jupyter
Hello - On Tue, Sep 1, 2020 at 10:16 AM Norman Gray wrote: > > Michael, hello. > > On 1 Sep 2020, at 15:27, 'Michael Milligan' via Project Jupyter wrote: > > > It sounds like you want > > https://github.com/rcthomas/jupyterhub-announcement > > > > That plugin is developed and used at NERSC to

Re: [jupyter] Jupyterhub and motd/nologin/alerts?

2020-09-01 Thread Norman Gray
Michael, hello. On 1 Sep 2020, at 15:27, 'Michael Milligan' via Project Jupyter wrote: It sounds like you want https://github.com/rcthomas/jupyterhub-announcement That plugin is developed and used at NERSC to do communication with their users in much the way you describe. We should

Re: [jupyter] Jupyterhub and motd/nologin/alerts?

2020-09-01 Thread 'Michael Milligan' via Project Jupyter
It sounds like you want https://github.com/rcthomas/jupyterhub-announcement That plugin is developed and used at NERSC to do communication with their users in much the way you describe. We should probably do something about making it more discoverable. On Tue, Sep 1, 2020 at 9:13 AM Norman Gray

[jupyter] Jupyterhub and motd/nologin/alerts?

2020-09-01 Thread Norman Gray
Greetings. Is there any jupyterhub equivalent of motd, or nologin, or alerts, available on Jupyterhuh? I feel sure there must be, but I can't find anything relevant either in the docs or via searches. When planning for server downtime, it's useful to be able to warn users of the