I want to restart current runtime (Ctrl+M) using code. Something like:
!restart_runtime
Is there such an option?
The runtime process will restart automatically when halted. So, one way to implement restart_runtime
would be:
import os
def restart_runtime():
os.kill(os.getpid(), 9)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With