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
%reset
In 3.7 Anaconda, just go to Kernel, select Restart