Reset ipython kernel

前端 未结 7 1872
情书的邮戳
情书的邮戳 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 10:21

    Even though it would be handy if %reset would clear the namespace and the cache for the imports (as in the notebook) one can explicitly reload a previously imported module using importlib.reload in python3.4 or imp.reload in python3.0-3.3 (and if needed reset the kernel in a second step).

    0 讨论(0)
提交回复
热议问题