I have a script what I run for all day for downloading data from some API. My problem is that the the connection is sometimes lost and the code can run only if I restart the kernel and run again manually. Is there any way in JupiterLab to code the process "Restart kernel and run all", so if there is any problem I could restart the Kernel in the exception statement automatically.
Thank,Roley