We have a requirement where we want to show session time on JupyterLab’s top bar, whenever User get access to JupyterLab.
Let say we have session time 2Hrs, then in this case it should be shown on Jupyterlab.
Do we have any such configuration file where we can make changes related to session time configuration.
By session time do you mean the time since the user opened JupyterLab? Or since the jupyterlab server was started on the machine?
For the first case this would mean keeping track of the time when the application is started, and add a UI element to the top area to display the elapsed time. This can be done with a (frontend only) JupyterLab extension.
Otherwise this might require having a Jupyter Server extension to be able to retrieve server specific information, and display it via the JupyterLab extension in the UI.
We have to have session time since the user opened JupyterLab.
Can you please share some example for JupyterLab extensions, how we can implement and integrate?
Here I have attached JupyterLab screenshot, we want to show session time at right top corner.
There might not be an exact example covering the top area, but it should be possible to adapt the existing ones to add widgets with app.shell.add(widget, 'top') instead.