When there are no interactive operations on JupyterLab notebook or terminal, after a while (not sure how long exactly), the session is closed and often see errors about JSON format, directory not found, and your server is not running as such.
I tried to run one while looping in the notebook (sleep every 5 seconds) and it kept running for 32 hours, but finally, the session still expired.
So, any known solution to keep the session alive?
The reason is that I need to run some logic in a notebook or terminal ipython for a long time to handle a huge dataset.