I'm using vscode to execute *.py and *.ipynb file on Linux machin through SSH remote. However, the session ends when my computer hibernates or encounters a connection lost. As the session is closed, the execution of jupyter notbook ceases, which is quite annoying as I train machine learning over night.
Is there any solution to make such remote SSH (as well as vscode remote tunnel) connecion presistent on vscode ?
The vscode documation has a related description but do not solve my problem:
The terminal supports two different types of persistent sessions:
Process reconnection: When reloading a window (for example, after installing an extension), reconnect to the previous process and restore its content. Process revive: When restarting VS Code, a terminal's content is restored and the process is relaunched using its original environment.
And tmux seems only works on termal.
N.B. I'm using vscode jupyter extension to selection kernal on remote machine.