Google Colab - How to 'restart runtime' using python code or command line interface?

后端 未结 3 1176
滥情空心
滥情空心 2020-12-31 15:09

Can someone suggest me programatically \'restart runtime\'? Any programmatically restarting option is fine, python or CLI (Command Line Interface), without using GUI.

3条回答
  •  佛祖请我去吃肉
    2020-12-31 15:41

    You could simply use:

    exit()
    

    This will restart the runtime without deleting files. The runtime will automatically start. And if you press "run all" the run is not interrupted and works till the end.

提交回复
热议问题