Reset ipython kernel

前端 未结 7 1909
情书的邮戳
情书的邮戳 2020-12-16 09:47

I was wondering if there is a way to restart the ipython kernel without closing it, like the kernel restart function that exists in the notebook. I tried %reset

7条回答
  •  情书的邮戳
    2020-12-16 09:55

    I personaly use add these two lines at the top of each ipynb file in JupyterLab:

    load_ext autoreload
    %autoreload 2
    

    It allows you to update the code in an adjacent xxx.py file, without having to restart the Kernel, which was a huge painpoint for me.

提交回复
热议问题